projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428bb68
)
ceph: fix NULL pointer deref when debugging is enabled
author
Jeff Layton
<jlayton@kernel.org>
Tue, 23 Apr 2019 18:18:45 +0000
(14:18 -0400)
committer
Ilya Dryomov
<idryomov@gmail.com>
Tue, 7 May 2019 17:22:37 +0000
(19:22 +0200)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c
patch
|
blob
|
history
diff --git
a/fs/ceph/file.c
b/fs/ceph/file.c
index 9f53c3d993040b1061da660bee2492c9d32a940f..7ae0f49349e39f7b9727495f526d9c63b7bab883 100644
(file)
--- a/
fs/ceph/file.c
+++ b/
fs/ceph/file.c
@@
-928,7
+928,7
@@
ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter,
dout("sync_direct_%s on file %p %lld~%u snapc %p seq %lld\n",
(write ? "write" : "read"), file, pos, (unsigned)count,
- snapc, snapc
->seq
);
+ snapc, snapc
? snapc->seq : 0
);
ret = filemap_write_and_wait_range(inode->i_mapping,
pos, pos + count - 1);