]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mwifiex: scan command preparation failure handling
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 21 Mar 2014 02:50:06 +0000 (19:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 31 Mar 2014 17:47:40 +0000 (13:47 -0400)
commit1845bd3a91427b4715ff0e28719fa4a4b9003f23
tree0fd54b5b2c643dc332e213ec9b827ac28d83a164
parent9d2ffb81608da30c3293fb7e20474358a5951cca
mwifiex: scan command preparation failure handling

When scan request is received, scan commands are prepared and
queued into scan pending queue. There is a corner case when
command nodes are full. So we stop queueing further scan
commands and return an error. This patch makes sure that
currently queued commands in scan pending queue are also freed
in this case.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c