]> err.no Git - linux-2.6/commit
asix fixes
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 22 Dec 2007 17:42:36 +0000 (17:42 +0000)
committerJeff Garzik <jeff@garzik.org>
Sun, 23 Dec 2007 03:53:06 +0000 (22:53 -0500)
commit51bf2976b55d07f9daae9697a0a3ac9f58abcedc
treeb1db201fb4a4bd1103cccd64842e861f37e96361
parent7fd71e58b038a7244c2ac1ee579c43947f3968c4
asix fixes

* usb_control_message() to/from stack (breaks on e.g. arm); some
  places did kmalloc() for buffer, some just worked from stack.
  Added kmalloc()/memcpy()/kfree() in asix_read_cmd()/asix_write_cmd(),
  removed that crap from callers.
* Fixed a leak in ax88172_bind() - on success it forgot to kfree() the
  buffer.
* Endianness bug in ax88178_bind() - we read a word from eeprom and work with
  it without converting to host-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/usb/asix.c