Skip to content
Commit 2d85ec8a authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

oradax: Fix return value check in dax_attach()



In case of error, the function class_create() returns ERR_PTR() and
never returns NULL. The NULL test in the return value check should be
replaced with IS_ERR().

Fixes: dd027328 ("sparc64: Oracle DAX driver")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b3ca676f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment