• Al Viro's avatar
    asix fixes · 51bf2976
    Al Viro authored
    * 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    51bf2976
asix.c 36.7 KB