summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorShailendra Verma <shailendra.v@samsung.com>2016-11-10 10:47:41 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-30 13:45:18 +0100
commit7b9ea6279b337455268fa41c1ddec22f1cb44e8f (patch)
tree031881988f2df5ae168ae4de777fe51688da2d7f /fs/btrfs/inode.c
parentbtrfs: add optimized version of eb to eb copy (diff)
downloadlinux-7b9ea6279b337455268fa41c1ddec22f1cb44e8f.tar.xz
linux-7b9ea6279b337455268fa41c1ddec22f1cb44e8f.zip
btrfs: return early from failed memory allocations in ioctl handlers
There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Shailendra Verma <shailendra.v@samsung.com> [ edit subject ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions