Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e4d2b16a
Commit
e4d2b16a
authored
Aug 04, 2016
by
Yan, Zheng
Committed by
Ilya Dryomov
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: fix null pointer dereference in ceph_flush_snaps()
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
864364a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
fs/ceph/caps.c
fs/ceph/caps.c
+4
-1
No files found.
fs/ceph/caps.c
View file @
e4d2b16a
...
...
@@ -1347,9 +1347,12 @@ void ceph_flush_snaps(struct ceph_inode_info *ci,
{
struct
inode
*
inode
=
&
ci
->
vfs_inode
;
struct
ceph_mds_client
*
mdsc
=
ceph_inode_to_client
(
inode
)
->
mdsc
;
struct
ceph_mds_session
*
session
=
*
psession
;
struct
ceph_mds_session
*
session
=
NULL
;
int
mds
;
dout
(
"ceph_flush_snaps %p
\n
"
,
inode
);
if
(
psession
)
session
=
*
psession
;
retry:
spin_lock
(
&
ci
->
i_ceph_lock
);
if
(
!
(
ci
->
i_ceph_flags
&
CEPH_I_FLUSH_SNAPS
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment