diff options
author | Raja Mani <rmani@qti.qualcomm.com> | 2016-03-10 10:25:07 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:25:59 +0200 |
commit | dc4f0e1cf9ab8ad370117c2137301a24dff500e1 (patch) | |
tree | 56687fa3831e4e6ba8ec67bba7941386ce6622b3 /net/sunrpc/stats.c | |
parent | db05a639e4137ef5d56dcb173bde229d29915561 (diff) |
ath10k: free cached fw bin contents when get board id fails
commit b9c191be3fbdd9d78be11160dd7a3ddb9fdc6d42 upstream.
ath10k_core_probe_fw() simply returns error without freeing
cached firmware file content when get board id operation fails.
Free cached fw bin data in failure case to avoid memory leak.
Fixes: db0984e51a18 ("ath10k: select board data based on BMI chip id and board id")
Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sunrpc/stats.c')
0 files changed, 0 insertions, 0 deletions