]> git.baikalelectronics.ru Git - kernel.git/commit
UNRPC: Return specific error code on kmalloc failure
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 10 Sep 2021 09:33:24 +0000 (17:33 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 23 Sep 2021 20:05:24 +0000 (16:05 -0400)
commit1360fc1110e16a4fe06d454532b591122bc28adb
treeb6930bdc43b392687db725917296b815fceb696f
parentd62d23a390a6c164f361cd2b647110320617ef52
UNRPC: Return specific error code on kmalloc failure

Although the callers of this function only care about whether the
return value is null or not, we should still give a rigorous
error code.

Smatch tool warning:
net/sunrpc/auth_gss/svcauth_gss.c:784 gss_write_verf() warn: returning
-1 instead of -ENOMEM is sloppy

No functional change, just more standardized.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/svcauth_gss.c