* [uml-devel] [patch] open_meta_file (meta_fs.c) error reporting fix.
@ 2004-10-16 16:35 Piotr Neuman
0 siblings, 0 replies; only message in thread
From: Piotr Neuman @ 2004-10-16 16:35 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
Small bug in open_meta_file() prevents error reporting if memory allocation in
get_path() fails (pretty unprobable but still).
Fix included (applies to UML ver. 2.6.8-um1 + externfs patch).
[-- Attachment #2: hostfs_open_meta_file.patch --]
[-- Type: text/x-diff, Size: 445 bytes --]
--- linux-uml/fs/hostfs/meta_fs.c.old 2004-10-16 18:32:17.514517144 +0200
+++ linux-uml/fs/hostfs/meta_fs.c 2004-10-16 18:25:14.000000000 +0200
@@ -83,8 +83,10 @@ static int open_meta_file(const char *pa
goto out;
meta_file = get_path(meta_path, meta_tmp, sizeof(meta_tmp));
- if(meta_file == NULL)
+ if(meta_file == NULL) {
+ err = -ENOMEM;
goto out;
+ }
err = open_filehandle(meta_file, of_rdwr(OPENFLAGS()), 0, fh);
if(err)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-16 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-16 16:35 [uml-devel] [patch] open_meta_file (meta_fs.c) error reporting fix Piotr Neuman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox