Re: null pointer dereference in omap_wdt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 1, 2015 at 11:23 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On 11/01/2015 03:11 PM, Peter Robinson wrote:
>>
>> Hi Lars,
>>
>> I'm seeing the following crash in omap_wdt in omap_wdt_get_timeleft
>> when I just run wdctl on a couple of different TI devices, the
>> beaglebone black/green or panda ES. I'm seeing it on both 4.2.3 and
>> 4.3rc7, looking at git it looks like you added the fuction in June,
>> have you seen this on any of your platforms?
>>
>
> I think that
>         struct omap_wdt_dev *wdev = watchdog_get_drvdata(wdog);
> in omap_wdt_get_timeleft() needs to be
>         struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog);
>
> Looks like there was an overlap between commit d2f78268ba58 ("watchdog:
> omap: put struct watchdog_device into driver data") and commit 452fafed839e
> ("watchdog: omap_wdt: implement get_timeleft").
>
> Can someone test this and send a patch to fix the problem ?

Yes, that fixed it, tested on the panda-es. I'll send a patch through
in a moment.

Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux