From: Alexey Khoroshilov Date: Fri, 6 Mar 2015 22:43:41 +0000 (+0300) Subject: NVMe: Fix error handling of class_create("nvme") X-Git-Tag: omap-for-v4.2/o2_dc~108^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c727040bdaa28cd7aa9dbc086eee7b236e0fb270;p=pandora-kernel.git 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 Acked-by: Keith Busch Signed-off-by: Jens Axboe --- Reading git-diff-tree failed