lkml.org 
[lkml]   [2021]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v29 09/13] mm/damon/dbgfs: Support multiple contexts
On Mon, Jun 14, 2021 at 11:30:12AM +0200, sieberf@amazon.com wrote:
> +    new_dir = debugfs_create_dir(name, root);
> +    dbgfs_dirs[dbgfs_nr_ctxs] = new_dir;
>
> debugfs_create_dir might return ERR_PTR, should this be checked?

No. Why do you care, the logic will keep on working afterward even if
that were to happen.

thanks,

greg k-h

\
 
 \ /
  Last update: 2021-06-14 11:45    [W:0.097 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site