[PATCH 6/7] watchdog: OMAP: use standard GETBOOTSTATUS interface; use platform_data fn ptr
Paul Walmsley
paul at pwsan.com
Thu Oct 25 16:16:11 EDT 2012
On Thu, 25 Oct 2012, Jon Hunter wrote:
> > + if (!pdata->read_reset_sources)
> > + return put_user(0, (int __user *)arg);
>
> In the case of booting with device-tree, pdata could be null and so
> should we check for this too? In other words ...
>
> + if (!pdata || !pdata->read_reset_sources)
> + return put_user(0, (int __user *)arg);
Thanks, good catch, will integrate that fix.
- Paul
More information about the linux-arm-kernel
mailing list