On Tue, Nov 16, 2021 at 02:50:25PM +0300, Dan Carpenter wrote: > If memdup_user() fails the error handing will crash when it tries > to kfree() an error pointer. Just return directly because there is > no cleanup required. > > Fixes: 1a15eb724aae ("btrfs: use btrfs_get_dev_args_from_path in dev removal ioctls") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef