Skip to content
Commit 7b9ea627 authored by Shailendra Verma's avatar Shailendra Verma Committed by David Sterba
Browse files

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: default avatarShailendra Verma <shailendra.v@samsung.com>
[ edit subject ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 58e8012c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment