Thread (3 messages) 3 messages, 3 authors, 2021-11-16

Re: [PATCH] btrfs: fix error pointer dereference in btrfs_ioctl_rm_dev_v2()

From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-11-16 14:39:46
Also in: kernel-janitors

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 <redacted>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help