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>
Sat, 17 Jun 2017 04:39:35 +0000 (06:39 +0200)
commit691fe5610d580285af0d02bd5f62662bc50ed707
tree8dd1c9fe03a163c126081390fd3b114bbae474ba
parent3fc4d70453ee4af1ac539e841e30d973a71edffb
staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.

commit baabd567f87be05330faa5140f72a91960e7405a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c