summaryrefslogtreecommitdiffstats
path: root/kernel/gcov
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2015-05-21 17:26:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 13:08:50 -0700
commit49bb3c862cc418e3bc9464654e4ccb8ebb5cc2ec (patch)
tree955cf1bc032750179e06436143ec3ae4513ef17a /kernel/gcov
parent7798edeebc8101b1e8b1d7fb9eee3710f0877cbc (diff)
downloadop-kernel-dev-49bb3c862cc418e3bc9464654e4ccb8ebb5cc2ec.zip
op-kernel-dev-49bb3c862cc418e3bc9464654e4ccb8ebb5cc2ec.tar.gz
drivers: PL011: avoid potential unregister_driver call
Although we care about not unregistering the driver if there are still ports connected during the .remove callback, we do miss this check in the pl011_probe function. So if the current port allocation fails, but there are other ports already registered, we will kill those. So factor out the port removal into a separate function and use that in the probe function, too. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Mark Langsdorf <mlangsdo@redhat.com> Tested-by: Naresh Bhat <nbhat@cavium.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/gcov')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud