[lkml]   [2020]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH][V2][next] rtc: ds1307: check for failed memory allocation on wdt
On Thu, Apr 02, 2020 at 04:53:12PM +0200, Alexandre Belloni wrote:
> As stated, I also prefer keeping the watchdog optional and ignore the
> error.

Hopefully you aren't running out of memory on start up. In current
kernels small memory allocations like this never fail so it doesn't
really affect runtime. It only silences the NULL dereference static
checker warning.

dan carpenter

 \ /
  Last update: 2020-04-03 10:47    [W:0.077 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site