We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6140f1d commit 98a2850Copy full SHA for 98a2850
fs/ceph/inode.c
@@ -1793,6 +1793,11 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
1793
goto done;
1794
}
1795
1796
+ if (unlikely(!in)) {
1797
+ err = -EINVAL;
1798
+ goto done;
1799
+ }
1800
+
1801
/* attach proper inode */
1802
if (d_really_is_negative(dn)) {
1803
ceph_dir_clear_ordered(dir);
@@ -1828,6 +1833,12 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
1828
1833
doutc(cl, " linking snapped dir %p to dn %p\n", in,
1829
1834
req->r_dentry);
1830
1835
1836
1837
1838
1839
1840
1841
1831
1842
ihold(in);
1832
1843
err = splice_dentry(&req->r_dentry, in);
1844
if (err < 0)
0 commit comments