mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Merge tag 'linux-watchdog-6.1-rc4' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog fixes from Wim Van Sebroeck: - fix use after free in exar driver - spelling fix in comment * tag 'linux-watchdog-6.1-rc4' of git://www.linux-watchdog.org/linux-watchdog: drivers: watchdog: exar_wdt.c fix use after free watchdog: sp805_wdt: fix spelling typo in comment
This commit is contained in:
commit
d79dcde0bc
2 files changed
+4
-2
No files matched your search
@@ -355,8 +355,10 @@ static int __init exar_wdt_register(struct wdt_priv *priv, const int idx)
|
||||
&priv->wdt_res, 1,
|
||||
priv, sizeof(*priv));
|
||||
if (IS_ERR(n->pdev)) {
|
||||
int err = PTR_ERR(n->pdev);
|
||||
|
||||
kfree(n);
|
||||
return PTR_ERR(n->pdev);
|
||||
return err;
|
||||
}
|
||||
|
||||
list_add_tail(&n->list, &pdev_list);
|
||||
|
||||
@@ -88,7 +88,7 @@ static bool wdt_is_running(struct watchdog_device *wdd)
|
||||
return (wdtcontrol & ENABLE_MASK) == ENABLE_MASK;
|
||||
}
|
||||
|
||||
/* This routine finds load value that will reset system in required timout */
|
||||
/* This routine finds load value that will reset system in required timeout */
|
||||
static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout)
|
||||
{
|
||||
struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
|
||||
|
||||
Reference in new issue
Block a user