summaryrefslogtreecommitdiff
path: root/proto_nlmsg.c
AgeCommit message (Expand)AuthorFilesLines
2014-08-15dissectors: Include protos.h in some dissectors for protocol ops declarationTobias Klauser1-0/+1
2014-06-04netsniff-ng: proto_nlmsg: Add notice about nlmsg pid fieldTobias Klauser1-1/+7
2014-05-28netsniff-ng: Print process name of the netlink message originTobias Klauser1-0/+19
2014-05-28netsniff-ng: Add netlink dissectorTobias Klauser1-0/+52
entfb770ae414d018255afa7a70b14ba1f8620762dd (diff)
btrfs: Handle uninitialised inode eviction
The code flow in btrfs_new_inode allows for btrfs_evict_inode to be called with not fully initialised inode (e.g. ->root member not being set). This can happen when btrfs_set_inode_index in btrfs_new_inode fails, which in turn would call iput for the newly allocated inode. This in turn leads to vfs calling into btrfs_evict_inode. This leads to null pointer dereference. To handle this situation check whether the passed inode has root set and just free it in case it doesn't. Signed-off-by: Nikolay Borisov <kernel@kyup.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat