]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: lustre: libcfs: Prevent harmless read underflow
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Jan 2018 10:26:14 +0000 (13:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 10:40:49 +0000 (11:40 +0100)
commit134aecbc25fd77645baaea5467b2a7ed8e9d1ea7
treee2686cffb296e7b90ceafe4f9aa653a792377fae
parenta81200b5acb30460163f5b2ce393e54d6445fd5d
staging: lustre: libcfs: Prevent harmless read underflow

Because this is a post-op instead of a pre-op, then it means we check
if knl_buffer[-1] is a space.  It doesn't really hurt anything, but
it causes a static checker warning so let's fix it.

Fixes: d7e09d0397e8 ("staging: add Lustre file system client support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/tracefile.c