Re: [PATCH] serial: pl011: protect attribute read from NULL platform data struct

2013-05-15 Thread Lee Jones
On Mon, 13 May 2013, Linus Walleij wrote: > On Thu, May 9, 2013 at 2:50 PM, Lee Jones wrote: > > > 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. >

Re: [PATCH] serial: pl011: protect attribute read from NULL platform data struct

2013-05-13 Thread Linus Walleij
On Thu, May 9, 2013 at 2:50 PM, Lee Jones wrote: > 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: Greg Kroah-Hartman > Cc:

[PATCH] serial: pl011: protect attribute read from NULL platform data struct

2013-05-09 Thread Lee Jones
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: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-ser...@vger.kernel.org Cc: Arnd Bergmann