diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-10-12 09:09:44 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-10-13 08:33:28 +0100 |
commit | 233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9 (patch) | |
tree | c2576c8f26c3434e8e3494c62a4ca40f167dd35b /fs | |
parent | 6d3a4c404648e415e7d96e285d723936d4df7ed0 (diff) | |
download | linux-233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9.tar.gz linux-233c9edcca0136f2b9b304fd4f32e9bb6ce88ea9.tar.bz2 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]"); |