lkml.org 
[lkml]   [2018]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: hisilicon: remove unexpected free_netdev
From
From: Pan Bian <bianpan2016@163.com>
Date: Wed, 28 Nov 2018 15:30:24 +0800

> The net device ndev is freed via free_netdev when failing to register
> the device. The control flow then jumps to the error handling code
> block. ndev is used and freed again. Resulting in a use-after-free bug.
>
> Signed-off-by: Pan Bian <bianpan2016@163.com>

Applied.

\
 
 \ /
  Last update: 2018-11-28 19:43    [W:0.033 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site