ath11k: return -ENOMEM on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Aug 2020 11:34:17 +0000 (14:34 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 10:19:46 +0000 (13:19 +0300)
commitfd0a0909723346911c2fb9832b63581457f00e8e
tree42ae9257c5fa77dd34ec5454679850a8f08193c5
parent342b6194a75b33443bec7ed598e5f08f52f66efd
ath11k: return -ENOMEM on allocation failure

Returning PTR_ERR(NULL) means success, but we should return -ENOMEM.

Fixes: 1399fb87ea3e ("ath11k: register MHI controller device for QCA6390")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200826113417.GE393664@mwanda
drivers/net/wireless/ath/ath11k/mhi.c