Re: [PATCH][V2] net/ethoc: fix null dereference on error exit path

2016-06-01 Thread David Miller
From: Colin King Date: Wed, 1 Jun 2016 14:16:50 +0100 > From: Colin Ian King > > priv is assigned to NULL however some of the early error exit paths to > label 'free' dereference priv, causing a null pointer dereference. > > Move the label 'free' to just the free_netdev statement, and add a n

Re: [PATCH][V2] net/ethoc: fix null dereference on error exit path

2016-06-01 Thread Max Filippov
On Wed, Jun 01, 2016 at 02:16:50PM +0100, Colin King wrote: > From: Colin Ian King > > priv is assigned to NULL however some of the early error exit paths to > label 'free' dereference priv, causing a null pointer dereference. > > Move the label 'free' to just the free_netdev statement, and add