diff options
author | Lee Jones <[email protected]> | 2013-05-09 13:50:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-05-20 11:54:55 -0700 |
commit | f6b6f52b583003ad443d5709c56b8858466c4268 (patch) | |
tree | 99097803171b86bfdb778d8616cd3fe8f2a1b3f5 /lib/memory-notifier-error-inject.c | |
parent | 383d2fc96c1983f5cd7fca3a3b1c9b8d8ee0de66 (diff) |
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 <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions