diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-10-12 08:09:44 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-10-13 09:33:28 +0200 |
commit | 233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9 (patch) | |
tree | c2576c8f26c3434e8e3494c62a4ca40f167dd35b /fs | |
parent | strparser: Propagate correct error code in strp_recv() (diff) | |
download | linux-233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9.tar.xz linux-233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9.zip |
afs: unmapping the wrong buffer
We switched from kmap_atomic() to kmap() so the kunmap() calls need to
be updated to match.
Fixes: d001648ec7cf ('rxrpc: Don't expose skbs to in-kernel users [ver #2]')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/fsclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c index 96f4d764d1a6..31c616ab9b40 100644 --- a/fs/afs/fsclient.c +++ b/fs/afs/fsclient.c @@ -364,7 +364,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) buffer = kmap(page); ret = afs_extract_data(call, buffer, call->count, true); - kunmap(buffer); + kunmap(page); if (ret < 0) return ret; } @@ -397,7 +397,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) page = call->reply3; buffer = kmap(page); memset(buffer + call->count, 0, PAGE_SIZE - call->count); - kunmap(buffer); + kunmap(page); } _leave(" = 0 [done]"); |