OSDN Git Service

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)
commitd29f6c19b0d4f71ee72e4e2b387c3d08666a6a18
tree1426ff407ddb9665b0d2b752aa7ccc9f653004e1
parente02fed16b3f430d89cdb9b2eda69906dafb507b3
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 dd9d1502feea3c23d412f289aad79e1d4e86d45d.

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