Re: [PATCH] smsc911x: Check platformdata pointer

2012-09-10 Thread Sascha Hauer
On Mon, Sep 10, 2012 at 01:33:29PM +0200, Jan Weitzel wrote: > If pdata is NULL smc911x_probe will crash. Checking the zero initialized > priv->shift results in default configuration if pdata is not set. > > Signed-off-by: Jan Weitzel Applied, thanks Sascha > --- > drivers/net/smc911x.c |

[PATCH] smsc911x: Check platformdata pointer

2012-09-10 Thread Jan Weitzel
If pdata is NULL smc911x_probe will crash. Checking the zero initialized priv->shift results in default configuration if pdata is not set. Signed-off-by: Jan Weitzel --- drivers/net/smc911x.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/smc911x.c b/driv