staging: lustre: check length of char array
authorAndreas Platschek <platschek@ict.tuwien.ac.at>
Mon, 19 May 2014 13:37:25 +0000 (13:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:05:35 +0000 (21:05 +0900)
commit597ae4685a5654fbb542227cd08283071276d05a
treeec069251a82b5b8e790553f345f8ff4324a25100
parent71397095763ca7f6b71a7193882eefb16d672928
staging: lustre: check length of char array

This fixes the following sparse error:

drivers/staging/lustre/lustre/obdclass/llog_ioctl.c:388:39: error: incompatible types for operation (>)
drivers/staging/lustre/lustre/obdclass/llog_ioctl.c:388:39:    left side has type char *ioc_inlbuf2
drivers/staging/lustre/lustre/obdclass/llog_ioctl.c:388:39:    right side has type int

Signed-off-by: Andreas Platschek <platschek@ict.tuwien.ac.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/llog_ioctl.c