]> 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)
commit5ecf3342ab1daad3a2fad782e4a233d3d7b68400
tree1426ff407ddb9665b0d2b752aa7ccc9f653004e1
parentca0909eae64d48e714df5671951302efdfa66c0b
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 f902e3f71bef265a606c4c0bcb1cb7cb906f925c.

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