]> err.no Git - linux-2.6/commit
pata_platform: Fix NULL pointer dereference
authorMagnus Damm <magnus.damm@gmail.com>
Fri, 20 Jul 2007 03:50:58 +0000 (12:50 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 20 Jul 2007 11:16:24 +0000 (07:16 -0400)
commit83b6839ec33becca78ebf6035489733a62e750bb
tree949fecf150fd59b4fdc848057e22bbab20d882b6
parent0ea9e179f436f153fc19fdaef7abbc1e0da20762
pata_platform: Fix NULL pointer dereference

pata_platform: Fix NULL pointer dereference

pata_platform currently dereferences a NULL pointer in pata_platform_probe()
if pdev->dev.platform_data is set to NULL. This breakage was most likely
introduced by commit 5f45bc50976ee1f408f7171af155aec646655a37.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_platform.c