Messages in this thread Patch in this message | | | From | Arnaud Lacombe <> | Subject | [PATCH 4/4] drivers/base/devtmpfs.c: fix uninitialized variable | Date | Thu, 21 Jul 2011 13:16:21 -0400 |
| |
drivers/base/devtmpfs.c: In function 'create_path': drivers/base/devtmpfs.c:169:6: warning: 'err' may be used uninitialized in this function
Cc: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> --- drivers/base/devtmpfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 38e6464..256c78a 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -166,7 +166,7 @@ static int create_path(const char *nodepath) { char *path; char *s; - int err; + int err = 0; /* parent directories do not exist, create them */ path = kstrdup(nodepath, GFP_KERNEL); -- 1.7.6.153.g78432
| |