diff options
author | Tim Collier <osdevtc@gmail.com> | 2019-05-11 18:40:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-09 09:17:21 +0200 |
commit | f6a39f877feb5342aee6b7ca63a61ceedaa92be7 (patch) | |
tree | bf4a339258575c8f345edd21316085fa44ec9c08 /fs | |
parent | 27a4b6c8c1cf6c899afdd525b559b307bf21617a (diff) | |
download | linux-rpi3-f6a39f877feb5342aee6b7ca63a61ceedaa92be7.tar.gz linux-rpi3-f6a39f877feb5342aee6b7ca63a61ceedaa92be7.tar.bz2 linux-rpi3-f6a39f877feb5342aee6b7ca63a61ceedaa92be7.zip |
staging: wlan-ng: fix adapter initialization failure
commit a67fedd788182764dc8ed59037c604b7e60349f1 upstream.
Commit e895f00a8496 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long
code line warnings.") moved the retrieval of the transfer buffer from
the URB from the top of function hfa384x_usbin_callback to a point
after reposting of the URB via a call to submit_rx_urb. The reposting
of the URB allocates a new transfer buffer so the new buffer is
retrieved instead of the buffer containing the response passed into
the callback. This results in failure to initialize the adapter with
an error reported in the system log (something like "CTLX[1] error:
state(Request failed)").
This change moves the retrieval to just before the point where the URB
is reposted so that the correct transfer buffer is retrieved and
initialization of the device succeeds.
Signed-off-by: Tim Collier <osdevtc@gmail.com>
Fixes: e895f00a8496 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions