diff options
author | 2020-07-02 12:35:02 +0100 | |
---|---|---|
committer | 2020-07-13 23:06:56 -0700 | |
commit | 9a5a85972c073f720d81a7ebd08bfe278e6e16db (patch) | |
tree | 415665e9b14179163bf5c4e31046cfc6e2d9d0c9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rsxx: switch from 'pci_free_consistent()' to 'dma_free_coherent()' (diff) | |
download | wireguard-linux-9a5a85972c073f720d81a7ebd08bfe278e6e16db.tar.xz wireguard-linux-9a5a85972c073f720d81a7ebd08bfe278e6e16db.zip |
md: raid0/linear: fix dereference before null check on pointer mddev
Pointer mddev is being dereferenced with a test_bit call before mddev
is being null checked, this may cause a null pointer dereference. Fix
this by moving the null pointer checks to sanity check mddev before
it is dereferenced.
Addresses-Coverity: ("Dereference before null check")
Fixes: 62f7b1989c02 ("md raid0/linear: Mark array as 'broken' and fail BIOs if a member is gone")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Guilherme G. Piccoli <gpiccoli@canonical.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions