diff options
author | 2015-03-07 01:43:41 +0300 | |
---|---|---|
committer | 2015-04-07 19:08:58 -0600 | |
commit | c727040bdaa28cd7aa9dbc086eee7b236e0fb270 (patch) | |
tree | 87e61b4cf7225eb8ac235e2f9007c682e76e3887 /scripts/gdb/linux/modules.py | |
parent | nbd: Return error pointer directly (diff) | |
download | wireguard-linux-c727040bdaa28cd7aa9dbc086eee7b236e0fb270.tar.xz wireguard-linux-c727040bdaa28cd7aa9dbc086eee7b236e0fb270.zip |
NVMe: Fix error handling of class_create("nvme")
class_create() returns ERR_PTR on failure,
so IS_ERR() should be used instead of check for NULL.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions