commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 30/98: fatfs: fix error handling in diskfs_lookup_hard


From: Samuel Thibault
Subject: [hurd] 30/98: fatfs: fix error handling in diskfs_lookup_hard
Date: Tue, 14 Jan 2014 02:00:00 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 6ba9bf05e62d651505e1487b50eee90bd6379e02
Author: Justus Winter <address@hidden>
Date:   Wed Nov 20 11:46:29 2013 +0100

    fatfs: fix error handling in diskfs_lookup_hard
    
    Found using the Clang Static Analyzer.
    
    * fatfs/dir.c (diskfs_lookup_hard): Fix error handling.
---
 fatfs/dir.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fatfs/dir.c b/fatfs/dir.c
index b2b7d7e..60fc898 100644
--- a/fatfs/dir.c
+++ b/fatfs/dir.c
@@ -231,6 +231,8 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum 
lookup_type type,
   err = vm_map (mach_task_self (),
                 &buf, buflen, 0, 1, memobj, 0, 0, prot, prot, 0);
   mach_port_deallocate (mach_task_self (), memobj);
+  if (err)
+    return err;
 
   inum = 0;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]