]> git.baikalelectronics.ru Git - kernel.git/commit
typhoon: repair firmware loading
authorDavid Dillow <dave@thedillows.org>
Tue, 3 Mar 2009 06:15:09 +0000 (22:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2009 06:15:09 +0000 (22:15 -0800)
commitde739034aa41a915f13de7db6265cd89137df203
tree7c6090475a02814b4a5e1a500d6066a811691bb7
parent6af90c5d3ef3ae73a9eb052736eade79f7cd9322
typhoon: repair firmware loading

The conversion to avoid using pci_alloc_consistent() broke the firmware
load process, as well as added an order-4 kmalloc and doubled the memory
usage of the firmware image. Go back to loading a page at a time.

Also, since the user can now give us utter garbage for firmware, do a
cursory validation so we don't try to load just anything.

Signed-off-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/typhoon.c