]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: remove bogus debug code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Sep 2020 20:18:21 +0000 (23:18 +0300)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Oct 2020 17:17:52 +0000 (12:17 -0500)
commite2cb0b503a9c7d7ee549d168a2e47566dce4467d
tree43016086940927a504c63fd7c418e18c29629b96
parent467ae1dbd63f4522c5500ebb4f3fc04b02938610
cifs: remove bogus debug code

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>
fs/cifs/asn1.c