Re: [PATCH] mmc: pxamci: fix potential oops

2016-07-18 Thread Ulf Hansson
On 14 July 2016 at 17:05, Robert Jarzmik wrote: > As reported by Dan in his report in [1], there is a potential NULL > pointer derefence if these conditions are met : > - there is no platform_data provided, ie. host->pdata = NULL > > Fix this by only using the platform

Re: [PATCH] mmc: pxamci: fix potential oops

2016-07-18 Thread Ulf Hansson
On 14 July 2016 at 17:05, Robert Jarzmik wrote: > As reported by Dan in his report in [1], there is a potential NULL > pointer derefence if these conditions are met : > - there is no platform_data provided, ie. host->pdata = NULL > > Fix this by only using the platform data ro_invert when a gpio

[PATCH] mmc: pxamci: fix potential oops

2016-07-14 Thread Robert Jarzmik
As reported by Dan in his report in [1], there is a potential NULL pointer derefence if these conditions are met : - there is no platform_data provided, ie. host->pdata = NULL Fix this by only using the platform data ro_invert when a gpio for read-only is provided by the platform data. This

[PATCH] mmc: pxamci: fix potential oops

2016-07-14 Thread Robert Jarzmik
As reported by Dan in his report in [1], there is a potential NULL pointer derefence if these conditions are met : - there is no platform_data provided, ie. host->pdata = NULL Fix this by only using the platform data ro_invert when a gpio for read-only is provided by the platform data. This