• G
    NFC: pn533: don't send USB data off of the stack · dbafc289
    Greg Kroah-Hartman 提交于
    It's amazing that this driver ever worked, but now that x86 doesn't
    allow USB data to be sent off of the stack, it really does not work at
    all.  Fix this up by properly allocating the data for the small
    "commands" that get sent to the device off of the stack.
    
    We do this for one command by having a whole urb just for ack messages,
    as they can be submitted in interrupt context, so we can not use
    usb_bulk_msg().  But the poweron command can sleep (and does), so use
    usb_bulk_msg() for that transfer.
    Reported-by: NCarlos Manuel Santos <cmmpsantos@gmail.com>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Stephen Hemminger <stephen@networkplumber.org>
    Cc: stable <stable@vger.kernel.org>
    Reviewed-by: NJohan Hovold <johan@kernel.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    dbafc289
usb.c 14.9 KB