]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "staging: gasket: page table: hold references to device and pci_dev"
authorTodd Poynor <toddpoynor@google.com>
Tue, 31 Jul 2018 20:24:47 +0000 (13:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Aug 2018 18:07:03 +0000 (20:07 +0200)
commit06a85b47172ede156226432024e7a4476cf32bdf
tree1426ff407ddb9665b0d2b752aa7ccc9f653004e1
parent2188ba7ddae313fe08826630b34180ecf7a003b8
Revert "staging: gasket: page table: hold references to device and pci_dev"

gasket_free_dev() is called only from driver PCI probe and remove
function. It is guaranteed that that pci_dev structure is not going
anywhere during that time; there is no need to take this additional
reference.

This reverts commit 45a10dbbe694d7db5157fd023335363f7cdb7e90.

Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_page_table.c