summaryrefslogtreecommitdiffstats
path: root/fs/logfs/file.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-09-16 23:18:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 09:05:32 +0100
commitf37902608d4652d564334f8ca0e7a7f1d32c9142 (patch)
treeb50edc9489c3224c849dab712246279a1faec70f /fs/logfs/file.c
parentdf838165a187b7c699ec372a2a136f9873112776 (diff)
downloadlinux-stable-f37902608d4652d564334f8ca0e7a7f1d32c9142.tar.gz
linux-stable-f37902608d4652d564334f8ca0e7a7f1d32c9142.tar.bz2
linux-stable-f37902608d4652d564334f8ca0e7a7f1d32c9142.zip
cifs: remove bogus debug code
commit d367cb960ce88914898cbfa43645c2e43ede9465 upstream. The "end" pointer is either NULL or it points to the next byte to parse. If there isn't a next byte then dereferencing "end" is an off-by-one out of bounds error. And, of course, if it's NULL that leads to an Oops. Printing "*end" doesn't seem very useful so let's delete this code. Also for the last debug statement, I noticed that it should be printing "sequence_end" instead of "end" so fix that as well. Reported-by: Dominik Maier <dmaier@sect.tu-berlin.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/logfs/file.c')
0 files changed, 0 insertions, 0 deletions