commit | 7b9ea6279b337455268fa41c1ddec22f1cb44e8f | [log] [tgz] |
---|---|---|
author | Shailendra Verma <shailendra.v@samsung.com> | Thu Nov 10 15:17:41 2016 +0530 |
committer | David Sterba <dsterba@suse.com> | Wed Nov 30 13:45:18 2016 +0100 |
tree | 031881988f2df5ae168ae4de777fe51688da2d7f | |
parent | 58e8012cc12b3cdebea118981c4fd7136d52f2c7 [diff] |
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>