]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 27 Jun 2017 13:16:34 +0000 (10:16 -0300)
commitd1b7727e50d73ac58068b6eb305dfdab944a1429
tree0e4b853ee4eac5d7a1b6c3d49ccfa2edcfbf578d
parent198f9b35c4bf68ae002f45cf74d9ecb817ce2457
staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.

BugLink: http://bugs.launchpad.net/bugs/1698817
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c