|
@@ -407,8 +407,10 @@ static ssize_t ath6kl_fwlog_block_read(struct file *file,
|
|
|
|
|
|
ret = wait_for_completion_interruptible(
|
|
ret = wait_for_completion_interruptible(
|
|
&ar->debug.fwlog_completion);
|
|
&ar->debug.fwlog_completion);
|
|
- if (ret == -ERESTARTSYS)
|
|
|
|
|
|
+ if (ret == -ERESTARTSYS) {
|
|
|
|
+ vfree(buf);
|
|
return ret;
|
|
return ret;
|
|
|
|
+ }
|
|
|
|
|
|
spin_lock(&ar->debug.fwlog_queue.lock);
|
|
spin_lock(&ar->debug.fwlog_queue.lock);
|
|
}
|
|
}
|