i40e/base: fix missing check for stopped admin queue
authorHelin Zhang <helin.zhang@intel.com>
Tue, 8 Mar 2016 08:14:14 +0000 (16:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 16:24:30 +0000 (17:24 +0100)
commit9f44dd3d8ad447c7f797a9564d30a15e5ab7f72b
tree57a65793a0ec0d6fd9c44cc68c68a4b43a66727e
parent37aef4214d211f4c472a1fc7d54eb8b02b443420
i40e/base: fix missing check for stopped admin queue

It's possible that while waiting for the spinlock, another
entity (that owns the spinlock) has shut down the admin queue.
If it then attempts to use the queue, it will panic.
It adds a check for this condition on the receive side. This
matches an existing check on the send queue side.

Fixes: 8db9e2a1b232 ("i40e: base driver")

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
drivers/net/i40e/base/i40e_adminq.c