[ldv-project] [PATCH] NVMe: Fix error handling of class_create("nvme")

Keith Busch keith.busch at intel.com
Mon Mar 16 20:22:24 MSK 2015


On Fri, 6 Mar 2015, Alexey Khoroshilov wrote:
> 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 at ispras.ru>

Thanks for the fix.

Acked-by: Keith Busch <keith.busch at intel.com>



More information about the ldv-project mailing list