qcacld-3.0: Avoid crash when psoc trans is rejected

Crash is seen when the mode change and shutdown happens in
parallel. Mode change is the driver trans and shutdown is a
psoc trans. If mode change is going on and shutdown req comes
then shutddown trans is rejected. Currently driver crashes
whenever psoc trans is rejected.

Avoid BUG_ON when the psoc trans is rejected.

CRs-Fixed: 2732103
Change-Id: Iad1ab4f188702ed581e3b41c1cdef1c495015048
This commit is contained in:
Sachin Ahuja 2020-07-16 19:55:54 +05:30 • committed by snandini
commit e9b335d67b

View file

@ -859,7 +859,6 @@ static void hdd_soc_recovery_shutdown(struct device *dev)
int errno;
errno = osif_psoc_sync_trans_start_wait(dev, &psoc_sync);
QDF_BUG(!errno);
if (errno)
return;