lkml.org 
[lkml]   [2017]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] debugfs: Add check for module parameter name
On Thu, Sep 21, 2017 at 05:46:54PM +0530, Arvind Yadav wrote:
> Here, start_creating() is calling by debugfs_create_dir()
> and debugfs_create_automount(). driver can pass name as NULL in
> debugfs_create_dir and debugfs_create_automount. So we need to
> add check for 'name'.

Huh? "Driver can pass any kind of crap pointer when calling this
function, so let's check if that crap happens to be NULL and bail
out in that particular case"? Or am I misreading that?

Do you have any in-tree examples, or is that about some out-of-tree
code that needs to be saved from itself?

\
 
 \ /
  Last update: 2017-09-21 19:32    [W:0.039 / U:3.908 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site