diff options
author | Al Viro <[email protected]> | 2019-01-27 04:58:00 +0000 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-01-30 18:16:40 +0100 |
commit | 92900e5160a5444d47dd376bc40066b709fbb5a6 (patch) | |
tree | 16fe4e2b48d4610448fe00759383ad686838ce08 /net/lapb/lapb_subr.c | |
parent | 302167c50b32e7fccc98994a91d40ddbbab04e52 (diff) |
btrfs: fix potential oops in device_list_add
alloc_fs_devices() can return ERR_PTR(-ENOMEM), so dereferencing its
result before the check for IS_ERR() is a bad idea.
Fixes: d1a63002829a4 ("btrfs: add members to fs_devices to track fsid changes")
Reviewed-by: Nikolay Borisov <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions