]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Potential uninitialized variable in afs_extract_data()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Jan 2018 10:02:19 +0000 (10:02 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 2 Jan 2018 10:02:19 +0000 (10:02 +0000)
commit6a56db2daccdc970b0cf2525f85df0f18d7f4367
treec66fcc953405353255c20de8426863fd1c7406db
parentaea81c2d3b081ac5fea9ceb2793565876a1cdc91
afs: Potential uninitialized variable in afs_extract_data()

Smatch warns that:

    fs/afs/rxrpc.c:922 afs_extract_data()
    error: uninitialized symbol 'remote_abort'.

Smatch is right that "remote_abort" might be uninitialized when we pass
it to afs_set_call_complete().  I don't know if that function uses the
uninitialized variable.  Anyway, the comment for rxrpc_kernel_recv_data(),
says that "*_abort should also be initialised to 0." and this patch does
that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/rxrpc.c