aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2010-05-13 06:12:52 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-14 03:06:22 -0700
commit3403aca2320274dc5c617dc2f0cc358771a51be9 (patch)
tree450028ec2e3851f26e4cb4c5f7993e04af655079 /drivers/net/qlcnic/qlcnic_main.c
parentsky2: Refactor down/up code out of sky2_restart() (diff)
downloadlinux-dev-3403aca2320274dc5c617dc2f0cc358771a51be9.tar.xz
linux-dev-3403aca2320274dc5c617dc2f0cc358771a51be9.zip
sky2: Avoid allocating memory in sky2_resume
Allocating memory can fail, and since we have the memory we need in sky2_resume when sky2_suspend is called, just stop the hardware without freeing the memory it's using. This avoids the possibility of failing because we can't allocate memory in sky2_resume(), and allows sharing code with sky2_restart(). Signed-off-by: Mike McCormack <mikem@ring3k.org> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
0 files changed, 0 insertions, 0 deletions