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
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