Re: [PATCH] phylib: Fix oops in suspend/resume paths

2009-01-22 Thread David Miller
From: Anton Vorontsov Date: Thu, 22 Jan 2009 21:09:30 +0300 > Suspend/resume routines check for phydrv != NULL, but that is > wrong because "phydrv" comes from container_of(drv). If drv is NULL, > then container_of(drv) will return non-NULL result, and the checks > won't work. > > The Freescale

[PATCH] phylib: Fix oops in suspend/resume paths

2009-01-22 Thread Anton Vorontsov
Suspend/resume routines check for phydrv != NULL, but that is wrong because "phydrv" comes from container_of(drv). If drv is NULL, then container_of(drv) will return non-NULL result, and the checks won't work. The Freescale TBI PHYs are driver-less, so "drv" is NULL, and that leads to the followin