Christophe Jaillet b3b2f62c62 mt7601u: check memory allocation failure
Check memory allocation failure and return -ENOMEM in such a case, as
already done a few lines below.

As 'dev->tx_q' can be NULL, we also need to check for that in
'mt7601u_free_tx()', and return early.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-08-24 12:54:33 +03:00
..
2017-08-24 12:54:33 +03:00
2016-09-09 12:09:25 +03:00
2016-09-09 12:09:25 +03:00
2016-09-09 12:09:25 +03:00
2016-09-09 12:09:25 +03:00
2016-09-09 12:09:25 +03:00
2017-08-10 11:56:00 +03:00
2015-08-10 22:19:31 +03:00