Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchdog: core: Fix devres_alloc() allocation size
Coverity reports: Passing argument 152UL /* sizeof (*wdd) */ to function __devres_alloc_node and then casting the return value to struct watchdog_device ** is suspicious. Allocation size needs to be sizeof(*rcwdd), not sizeof(*wdd). Fixes: 83fbae5 ("watchdog: Add a device managed API for ...") Cc: Neil Armstrong <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
- Loading branch information