aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2012-01-24 18:34:24 +0000
committerGreg Kroah-Hartman <[email protected]>2012-01-25 00:00:34 +0000
commitfde25a9b63b9a3dc91365c394a426ebe64cfc2da (patch)
treeecc24bd2702cb7cb32cd4d22729541d5c79cee39 /lib/dma-debug.c
parentdriver-core: Fix possible null reference in subsys_interface_unregister (diff)
downloadkernel-fde25a9b63b9a3dc91365c394a426ebe64cfc2da.tar.gz
kernel-fde25a9b63b9a3dc91365c394a426ebe64cfc2da.zip
Driver core: driver_find() drops reference before returning
As part of the removal of get_driver()/put_driver(), this patch (as1510) changes driver_find(); it now drops the reference it acquires before returning. The patch also adjusts all the callers of driver_find() to remove the now unnecessary calls to put_driver(). In addition, the patch adds a warning to driver_find(): Callers must make sure the driver they are searching for does not get unloaded while they are using it. This has always been the case; driver_find() has never prevented a driver from being unregistered or unloaded. Hence the patch will not introduce any new bugs. The existing callers all seem to be okay in this respect, however I don't understand the video drivers well enough to be certain about them. Signed-off-by: Alan Stern <[email protected]> CC: Dmitry Torokhov <[email protected]> CC: Kyungmin Park <[email protected]> CC: Andy Walls <[email protected]> CC: Martin Schwidefsky <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions