diff options
| author | 2020-11-24 09:12:37 +0100 | |
|---|---|---|
| committer | 2020-11-24 09:13:00 +0100 | |
| commit | 43906287380f962a7178059cf8da1e03d94da3e0 (patch) | |
| tree | 669a295bf922e54c9a221550bb4598c3758ba9a0 /kernel/fail_function.c | |
| parent | ALSA: emu10k1: Use dma_set_mask_and_coherent to simplify code (diff) | |
| parent | ALSA: usb-audio: Fix MOTU M-Series quirks (diff) | |
Merge branch 'topic/usb-audio-refactoring' into for-next
Pull the USB audio improvement
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'kernel/fail_function.c')
| -rw-r--r-- | kernel/fail_function.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/fail_function.c b/kernel/fail_function.c index 63b349168da7..b0b1ad93fa95 100644 --- a/kernel/fail_function.c +++ b/kernel/fail_function.c @@ -253,7 +253,7 @@ static ssize_t fei_write(struct file *file, const char __user *buffer, if (copy_from_user(buf, buffer, count)) { ret = -EFAULT; - goto out; + goto out_free; } buf[count] = '\0'; sym = strstrip(buf); @@ -307,8 +307,9 @@ static ssize_t fei_write(struct file *file, const char __user *buffer, ret = count; } out: - kfree(buf); mutex_unlock(&fei_lock); +out_free: + kfree(buf); return ret; } |
