Files
kernel_google_wahoo/fs/cifs
Steve French 6e73e06961 cifs: fix incorrect check for null pointer in header_assemble
commit 9ed38fd4a15417cac83967360cf20b853bfab9b6 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 10:22:23 +02:00
..
2020-10-29 09:03:01 +01:00
2017-05-20 14:27:01 +02:00
2019-10-29 09:13:30 +01:00
2017-05-08 07:46:01 +02:00
2012-07-24 10:25:13 -05:00
2017-05-08 07:46:01 +02:00
2013-09-08 14:54:24 -05:00