Dan Carpenter
d815b3f2f2
btrfs: fix error pointer dereference in btrfs_ioctl_rm_dev_v2()
...
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")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-12-08 15:40:19 +01:00
..
2021-10-26 19:08:05 +02:00
2021-09-02 09:21:27 -07:00
2021-11-16 16:50:23 +01:00
2020-03-23 17:01:51 +01:00
2021-08-23 13:19:01 +02:00
2021-08-23 13:19:01 +02:00
2021-10-26 19:08:07 +02:00
2021-10-26 19:08:07 +02:00
2020-12-08 15:53:41 +01:00
2020-03-23 17:01:55 +01:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:07 +02:00
2020-03-23 17:01:39 +01:00
2021-10-26 19:08:04 +02:00
2021-10-26 19:08:04 +02:00
2021-10-26 19:08:03 +02:00
2021-10-29 12:39:13 +02:00
2021-06-22 14:11:57 +02:00
2020-07-27 12:55:36 +02:00
2021-10-26 19:08:03 +02:00
2020-12-08 15:54:10 +01:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:07 +02:00
2021-02-09 02:46:07 +01:00
2021-10-07 22:06:32 +02:00
2021-06-22 14:11:57 +02:00
2020-12-08 15:54:02 +01:00
2021-11-16 16:50:51 +01:00
2021-10-26 19:08:07 +02:00
2020-12-08 15:54:02 +01:00
2020-03-23 17:01:42 +01:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:04 +02:00
2021-10-26 19:08:02 +02:00
2019-11-18 23:43:44 +01:00
2020-12-08 15:54:13 +01:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:06 +02:00
2021-10-26 19:08:03 +02:00
2021-02-09 02:46:03 +01:00
2021-01-25 18:44:37 +01:00
2019-11-18 17:51:51 +01:00
2020-12-08 15:54:02 +01:00
2021-10-29 12:39:13 +02:00
2021-12-08 15:40:19 +01:00
2021-06-22 14:11:57 +02:00
2021-06-22 14:11:57 +02:00
2021-10-26 19:08:02 +02:00
2021-11-26 16:10:05 +01:00
2021-08-23 13:19:09 +02:00
2021-09-07 14:29:50 +02:00
2021-09-07 14:30:41 +02:00
2021-08-23 13:19:02 +02:00
2018-04-12 16:29:51 +02:00
2021-01-07 17:25:05 +01:00
2021-01-07 17:25:05 +01:00
2021-06-22 14:11:58 +02:00
2019-04-29 19:02:54 +02:00
2021-08-23 13:19:01 +02:00
2021-07-22 15:50:07 +02:00
2021-10-26 19:08:03 +02:00
2021-10-26 19:08:03 +02:00
2020-03-23 17:01:53 +01:00
2021-10-26 19:08:02 +02:00
2021-10-26 19:08:06 +02:00
2019-04-29 19:02:49 +02:00
2021-10-26 19:08:03 +02:00
2020-03-23 17:01:54 +01:00
2021-10-26 19:08:07 +02:00
2020-10-07 12:12:13 +02:00
2021-11-16 16:51:11 +01:00
2021-10-29 12:38:43 +02:00
2021-10-29 12:38:43 +02:00
2021-10-26 19:08:05 +02:00
2021-06-22 14:55:25 +02:00
2021-08-23 13:18:58 +02:00
2021-10-26 19:08:05 +02:00
2021-10-26 19:08:05 +02:00
2021-10-26 19:08:05 +02:00
2021-10-26 19:08:07 +02:00
2020-10-07 12:12:21 +02:00
2021-10-26 19:08:05 +02:00
2021-07-07 17:42:41 +02:00
2021-08-23 13:19:09 +02:00
2019-04-29 19:02:39 +02:00
2020-12-08 15:54:01 +01:00
2021-10-29 12:39:13 +02:00
2021-10-26 19:08:05 +02:00
2021-04-20 19:27:17 +02:00
2021-04-19 17:25:17 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2020-12-08 15:53:52 +01:00
2021-09-17 19:29:41 +02:00
2021-11-16 16:50:47 +01:00
2021-10-26 19:08:07 +02:00
2021-10-26 19:08:02 +02:00
2019-04-29 19:02:44 +02:00
2021-08-23 13:19:04 +02:00
2021-10-26 19:08:05 +02:00
2021-10-26 19:08:01 +02:00
2021-08-23 13:19:04 +02:00