Re: ixgbe: fix potential null dereference

From: Shuah Khan
Date: Thu Feb 21 2013 - 12:43:01 EST


On Wed, Feb 20, 2013 at 8:32 PM, Linux Kernel Mailing List
<linux-kernel@xxxxxxxxxxxxxxx> wrote:
> Gitweb: http://git.kernel.org/linus/;a=commit;h=f752be9c3de4fbb6a9b2c060f3794bd928a0ad7a
> Commit: f752be9c3de4fbb6a9b2c060f3794bd928a0ad7a
> Parent: 07ce870bed2f631ad53a2c1a90db20b5f8126ab9
> Author: Josh Hay <joshua.a.hay@xxxxxxxxx>
> AuthorDate: Fri Jan 4 03:34:36 2013 +0000
> Committer: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>
> CommitDate: Tue Feb 5 01:43:49 2013 -0800
>
> ixgbe: fix potential null dereference
>
> This patch adds a default case which goes to the next loop iteration
> in the case where p is not set, preventing p from being dereferenced.
>
> Signed-off-by: Josh Hay <joshua.a.hay@xxxxxxxxx>
> Tested-by: Phil Schmitt <phillip.j.schmitt@xxxxxxxxx>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>
> ---

Jeff/Josh,

Should this patch be considered for stable release 3.7 and 3.4. It
applied cleanly to both of these releases. I haven't tested it yet
though.

-- Shuah
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/