Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320961
b: refs/heads/master
c: 5860930
h: refs/heads/master
i:
  320959: 4e8b1e8
v: v3
  • Loading branch information
Al Viro committed Jul 29, 2012
1 parent 775dd32 commit 49e49ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20818a0caa84adbfe2f1e9c0e036f5b09a9692a2
refs/heads/master: 586093064d95618cc9ba2acd546949eea9f2a8fa
8 changes: 4 additions & 4 deletions trunk/sound/sound_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ static int do_mod_firmware_load(const char *fn, char **fp)
if (l <= 0 || l > 131072)
{
printk(KERN_INFO "Invalid firmware '%s'\n", fn);
filp_close(filp, current->files);
filp_close(filp, NULL);
return 0;
}
dp = vmalloc(l);
if (dp == NULL)
{
printk(KERN_INFO "Out of memory loading '%s'.\n", fn);
filp_close(filp, current->files);
filp_close(filp, NULL);
return 0;
}
pos = 0;
if (vfs_read(filp, dp, l, &pos) != l)
{
printk(KERN_INFO "Failed to read '%s'.\n", fn);
vfree(dp);
filp_close(filp, current->files);
filp_close(filp, NULL);
return 0;
}
filp_close(filp, current->files);
filp_close(filp, NULL);
*fp = dp;
return (int) l;
}
Expand Down

0 comments on commit 49e49ba

Please sign in to comment.