summaryrefslogtreecommitdiffstats
path: root/drivers/char/ip27-rtc.c
diff options
context:
space:
mode:
authorAndrea Righi <a.righi@cineca.it>2007-04-24 12:40:57 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-24 12:40:57 -0400
commitd91c088b39e3c66d309938de858775bb90fd1ead (patch)
tree5ea1c77374e894b6218b764324fe1200290a4c40 /drivers/char/ip27-rtc.c
parent4bf3631cdb012591667ab927fcd7719d92837833 (diff)
downloadblackbird-obmc-linux-d91c088b39e3c66d309938de858775bb90fd1ead.tar.gz
blackbird-obmc-linux-d91c088b39e3c66d309938de858775bb90fd1ead.zip
[netdrvr] depca: handle platform_device_add() failure
The following patch fixes a kernel bug in depca_platform_probe(). We don't use a dynamic pointer for pldev->dev.platform_data, so it seems that the correct way to proceed if platform_device_add(pldev) fails is to explicitly set the pldev->dev.platform_data pointer to NULL, before calling the platform_device_put(pldev), or it will be kfree'ed by platform_device_release(). Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/char/ip27-rtc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud