]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: silence a harmless uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Jul 2018 12:29:29 +0000 (15:29 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 31 Jul 2018 16:53:40 +0000 (12:53 -0400)
commit5094d6271e3face65fe4d294f54c873babe092ff
treefff4899488b81c1ab5d301a06017552d9722668f
parent927cacc911f9cb9cfd3be3dbc020f56fd2829438
NFS: silence a harmless uninitialized variable warning

kstrtoul() can return -ERANGE so Smatch complains that "num" can be
uninitialized.  We check that it's within bounds so it's not a huge
deal.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c