From: Lee Jones Date: Thu, 9 May 2013 12:50:55 +0000 (+0100) Subject: serial: pl011: protect attribute read from NULL platform data struct X-Git-Tag: v3.10-rc3~22^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b6f52b583003ad443d5709c56b8858466c4268;p=pandora-kernel.git serial: pl011: protect attribute read from NULL platform data struct It's completely feasible that platform data will be empty i.e. when booting with Device Tree with no device AUXDATA. So we must protect it's use in these use-cases, or risk a kernel Oops. Cc: Russell King Cc: Jiri Slaby Cc: Arnd Bergmann Signed-off-by: Lee Jones Reviewed-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed