cifs: missing null check for newinode pointer
authorSteve French <stfrench@microsoft.com>
Wed, 23 Jun 2021 00:53:08 +0000 (19:53 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 00:24:30 +0000 (19:24 -0500)
commit0917310b984c1ac24da2be0ebe992539b9ba94ed
treee9ff527315aa2398152acea23865c22659eedb44
parent4c4a525ae590623eb3ba667151194a024e643ffd
cifs: missing null check for newinode pointer

in cifs_do_create we check if newinode is valid before referencing it
but are missing the check in one place in fs/cifs/dir.c

Addresses-Coverity: 1357292 ("Dereference after null check")
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dir.c