summaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
diff options
context:
space:
mode:
authorJames Hogan2015-02-21 00:45:44 +0100
committerWim Van Sebroeck2015-03-27 08:47:42 +0100
commita629c08fdb98ebb184d745553af9dda4f05941bf (patch)
tree3671a36cf23d6f124b9c6e098f5abefb5004fff8 /REPORTING-BUGS
parentwatchdog: mtk_wdt: signedness bug in mtk_wdt_start() (diff)
downloadkernel-qcow2-linux-a629c08fdb98ebb184d745553af9dda4f05941bf.tar.gz
kernel-qcow2-linux-a629c08fdb98ebb184d745553af9dda4f05941bf.tar.xz
kernel-qcow2-linux-a629c08fdb98ebb184d745553af9dda4f05941bf.zip
watchdog: imgpdc: Fix probe NULL pointer dereference
The IMG PDC watchdog probe function calls pdc_wdt_stop() prior to watchdog_set_drvdata(), causing a NULL pointer dereference when pdc_wdt_stop() retrieves the struct pdc_wdt_dev pointer using watchdog_get_drvdata() and reads the register base address through it. Fix by moving the watchdog_set_drvdata() call earlier, to where various other pdc_wdt->wdt_dev fields are initialised. Fixes: 93937669e9b5 ("watchdog: ImgTec PDC Watchdog Timer Driver") Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com> Cc: Naidu Tellapati <Naidu.Tellapati@imgtec.com> Cc: Jude Abraham <Jude.Abraham@imgtec.com> Cc: linux-watchdog@vger.kernel.org Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions