lkml.org 
[lkml]   [2009]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectQ. d_alloc() in pipe(2)
Date

In pipe(2), create_write_pipe() creates a dentry by
struct qstr name = { .name = "" };
d_alloc(root, &name);

But d_alloc() refers name->len which is uninitialized.
Isn't it better to replace d_alloc() by d_alloc_name(root, "")?


J. R. Okajima


\
 
 \ /
  Last update: 2009-12-29 06:59    [W:0.054 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site