aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
authorCornelia Huck <[email protected]>2008-01-21 15:09:44 +0000
committerGreg Kroah-Hartman <[email protected]>2008-01-25 04:40:44 +0000
commit63b6971a0876b744e2fcf3c9df15d130501e1deb (patch)
treee5d89795dbcbc49e5685bd99a15700e58c53d95f /drivers/rtc/interface.c
parentUIO: constify function pointer tables (diff)
downloadkernel-63b6971a0876b744e2fcf3c9df15d130501e1deb.tar.gz
kernel-63b6971a0876b744e2fcf3c9df15d130501e1deb.zip
Driver core: Cleanup get_device_parent() in device_add() and device_move()
Make setup_parent() void as get_device_parent() will always return either a valid kobject or NULL. Introduce cleanup_glue_dir() to drop reference grabbed on "glue" directory by get_device_parent(). Use it for cleanup in device_move() and device_add() on errors. This should fix the refcounting problem reported in http://marc.info/?l=linux-kernel&m=120052487909200&w=2 Signed-off-by: Cornelia Huck <[email protected]> Cc: Dave Young <[email protected]> Cc: Gabor Gombas <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Al Viro <[email protected]> Cc: Marcel Holtmann <[email protected]> Cc: David Miller <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions