Files
twx-linux/fs
Steve French 43d2e0fbc6 cifs: fix incorrect check for null pointer in header_assemble
commit 9ed38fd4a1 upstream.

Although very unlikely that the tlink pointer would be null in this case,
get_next_mid function can in theory return null (but not an error)
so need to check for null (not for IS_ERR, which can not be returned
here).

Address warning:

        fs/smbfs_client/connect.c:2392 cifs_match_super()
        warn: 'tlink' isn't an ERR_PTR

Pointed out by Dan Carpenter via smatch code analysis tool

CC: stable@vger.kernel.org
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-06 15:31:10 +02:00
..
2020-11-05 11:08:53 +01:00
…
2021-06-30 08:48:14 -04:00
…
…
…
2021-07-20 16:15:46 +02:00
…
2021-09-22 11:48:02 +02:00
2021-07-20 16:16:03 +02:00
…
…
…
…
…
…
2020-06-22 09:05:01 +02:00
…
…
…
2020-03-05 16:42:12 +01:00
…
2021-01-30 13:32:11 +01:00
…
…
2020-03-25 08:06:14 +01:00
…
2021-05-22 10:59:50 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…