https://github.com/torvalds/linux
Revision f1914226e12044f0cacda59efc91bee972c30341 authored by Mike McCormack on 23 September 2009, 03:50:36 UTC, committed by David S. Miller on 01 October 2009, 03:03:18 UTC
If allocation of the second ports fails, make sure that hw->ports
 is not 2 otherwise we'll crash trying to access the second port.

This fix is copied from a similar fix in the sky2 driver (ca519274...),
but is untested, as I don't have a skge card.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ec1652a
History
Tip revision: f1914226e12044f0cacda59efc91bee972c30341 authored by Mike McCormack on 23 September 2009, 03:50:36 UTC
skge: Make sure both ports initialize correctly
Tip revision: f191422
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 952 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 153.3 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top