diff options
Diffstat (limited to 'sound/sound_firmware.c')
-rw-r--r-- | sound/sound_firmware.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/sound_firmware.c b/sound/sound_firmware.c index 7e96249536b4..37711a5d0d6b 100644 --- a/sound/sound_firmware.c +++ b/sound/sound_firmware.c | |||
@@ -23,14 +23,14 @@ static int do_mod_firmware_load(const char *fn, char **fp) | |||
23 | if (l <= 0 || l > 131072) | 23 | if (l <= 0 || l > 131072) |
24 | { | 24 | { |
25 | printk(KERN_INFO "Invalid firmware '%s'\n", fn); | 25 | printk(KERN_INFO "Invalid firmware '%s'\n", fn); |
26 | filp_close(filp, current->files); | 26 | filp_close(filp, NULL); |
27 | return 0; | 27 | return 0; |
28 | } | 28 | } |
29 | dp = vmalloc(l); | 29 | dp = vmalloc(l); |
30 | if (dp == NULL) | 30 | if (dp == NULL) |
31 | { | 31 | { |
32 | printk(KERN_INFO "Out of memory loading '%s'.\n", fn); | 32 | printk(KERN_INFO "Out of memory loading '%s'.\n", fn); |
33 | filp_close(filp, current->files); | 33 | filp_close(filp, NULL); |
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |
36 | pos = 0; | 36 | pos = 0; |
@@ -38,10 +38,10 @@ static int do_mod_firmware_load(const char *fn, char **fp) | |||
38 | { | 38 | { |
39 | printk(KERN_INFO "Failed to read '%s'.\n", fn); | 39 | printk(KERN_INFO "Failed to read '%s'.\n", fn); |
40 | vfree(dp); | 40 | vfree(dp); |
41 | filp_close(filp, current->files); | 41 | filp_close(filp, NULL); |
42 | return 0; | 42 | return 0; |
43 | } | 43 | } |
44 | filp_close(filp, current->files); | 44 | filp_close(filp, NULL); |
45 | *fp = dp; | 45 | *fp = dp; |
46 | return (int) l; | 46 | return (int) l; |
47 | } | 47 | } |