diff options
Diffstat (limited to 'fatfs/dir.c')
-rw-r--r-- | fatfs/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fatfs/dir.c b/fatfs/dir.c index 60fc898c..5a38c63a 100644 --- a/fatfs/dir.c +++ b/fatfs/dir.c @@ -865,6 +865,8 @@ diskfs_get_directs (struct node *dp, 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; bufp = buf; for (i = 0; i < entry; i ++) |