]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Jun 2021 07:39:52 +0000 (08:39 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Jun 2021 14:42:26 +0000 (07:42 -0700)
commit87f1449e4cbe7062957b716332457fd25f05f2c2
tree4a961598f8378f3e807fe430d8d6ba9ed9bb1c7c
parent6117501025ffc681ab63b6a1756e88d2d58b959e
afs: Fix an IS_ERR() vs NULL check

The proc_symlink() function returns NULL on error, it doesn't return
error pointers.

Fixes: 30d7999ee2fb ("afs: Implement network namespacing")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-afs@lists.infradead.org
Link: https://lore.kernel.org/r/YLjMRKX40pTrJvgf@mwanda/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/main.c