[PATCH 2/2] gianfar: Fix potential oops during OF address translation

2010-04-23 Thread Anton Vorontsov
gianfar driver may pass NULL pointer to the of_translate_address(), which may lead to a kernel oops. Fix this by using of_iomap(), which is also much simpler and shorter. Signed-off-by: Anton Vorontsov avoront...@mvista.com --- drivers/net/gianfar.c |6 +- 1 files changed, 1

Re: [PATCH 2/2] gianfar: Fix potential oops during OF address translation

2010-04-23 Thread David Miller
From: Anton Vorontsov avoront...@mvista.com Date: Fri, 23 Apr 2010 21:12:44 +0400 gianfar driver may pass NULL pointer to the of_translate_address(), which may lead to a kernel oops. Fix this by using of_iomap(), which is also much simpler and shorter. Signed-off-by: Anton Vorontsov