]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: do not return invalid pointers as a *dentry
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 13:15:56 +0000 (14:15 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Feb 2019 14:55:12 +0000 (16:55 +0200)
commit8828789f189569afc107bfc528558b32b4371ae8
treeb3b01707784718aa5a8cd7489cb557a3d0dba246
parentbe03efee0e3076ac80079e8cff040da886da7997
ath10k: do not return invalid pointers as a *dentry

When calling debugfs functions, they can now return error values if
something went wrong.  If that happens, return a NULL as a *dentry to
the relay core instead of passing it an illegal pointer.

The relay core should be able to handle an illegal pointer, but add this
check to be safe.

Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: ath10k@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/spectral.c