staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 11 May 2017 17:57:43 +0000 (18:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 09:48:44 +0000 (11:48 +0200)
commitbaabd567f87be05330faa5140f72a91960e7405a
treeb2a64c4f38832cf51ca6477f8a2dbbe461f8b728
parentff92b9e3c9f85fa442c430d70bf075499e1193b7
staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.

The driver attempts to alter memory that is mapped to PCI device.

This is because tx_fwinfo_8190pci points to skb->data

Move the pci_map_single to when completed buffer is ready to be mapped with
psdec is empty to drop on mapping error.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c