lkml.org 
[lkml]   [2016]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] iwl4965: Fix a null pointer dereference in il_tx_queue_free and il_cmd_queue_free
On Thu, Jan 07, 2016 at 07:51:38PM +0800, Jia-Ju Bai wrote:
> err:
> - for (i = 0; i < actual_slots; i++)
> + for (i = 0; i < actual_slots; i++) {
> kfree(txq->cmd[i]);
> + txq->cmd[i] = NULL;

I don't think we need this, otherwise patch looks good.

Stanislaw

\
 
 \ /
  Last update: 2016-01-11 14:01    [W:0.060 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site