Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ide: fix generic_ide_suspend/resume Oops
This patch fixes a regresion introduced by commit 0998d06 (device-core: Ensure drvdata = NULL when no driver is bound). Suspend oopses in generic_ide_suspend() because dev_get_drvdata() returns NULL (dev->p->driver_data == NULL) and this function is not prepared for this. Fix is based on Alan Stern's suggestion. Signed-off-by: Miklos Szeredi <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information