From: Baruch Siach Date: Tue, 22 Dec 2009 00:26:46 +0000 (-0800) Subject: serial: imx: fix NULL dereference Oops when pdata == NULL X-Git-Tag: v2.6.34-rc1~216^2~29 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcd18d1b37413d25eaf4580682b1b8e4a09ff5e;p=pandora-kernel.git serial: imx: fix NULL dereference Oops when pdata == NULL The platform code doesn't have to provide platform data to get sensible default behaviour from the imx serial driver. This patch does not handle NULL dereference in the IrDA case, which still requires a valid platform data pointer (in imx_startup()/imx_shutdown()), since I don't know whether there is a sensible default behaviour, or should the operation just fail cleanly. Signed-off-by: Baruch Siach Cc: Baruch Siach Cc: Alan Cox Cc: Sascha Hauer Cc: Oskar Schirmer Cc: Fabian Godehardt Cc: Daniel Glöckner Cc: stable Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed