OSDN Git Service

staging: wilc1000: avoid mutex unlock without lock in wilc_wlan_handle_txq()
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 23 Jan 2020 12:50:49 +0000 (12:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 18:16:12 +0000 (19:16 +0100)
commitbd4217cb9d54171a109fe63d0ac801cc7a18edb9
treef8eb70961540787bc1dd2de808f7d08437e9a1e1
parent7a80aa23d0f0f52478339840577137f556bf9121
staging: wilc1000: avoid mutex unlock without lock in wilc_wlan_handle_txq()

In wilc_wlan_handle_txq(), mutex unlock was called without acquiring
it. Also error code for full VMM condition was incorrect as discussed in
[1]. Now used a proper code to indicate VMM is full, for which transfer
to VMM is required again. 'wilc_wlan_handle_txq()' should be called
again if the VMM space was full earlier or otherwise based on
'txq_event' signal.

1. https://lore.kernel.org/driverdev-devel/20191113183322.a54mh2w6dulklgsd@kili.mountain/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200123182129.4053-2-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/netdev.c
drivers/staging/wilc1000/wlan.c
drivers/staging/wilc1000/wlan.h