Re: [PATCH net] net: bridge: fix a null pointer dereference in br_afspec

2017-06-06 Thread David Miller
From: Nikolay Aleksandrov Date: Tue, 6 Jun 2017 01:26:24 +0300 > We might call br_afspec() with p == NULL which is a valid use case if > the action is on the bridge device itself, but the bridge tunnel code > dereferences the p pointer without checking, so check if p is null > first. > > Report

Re: [PATCH net] net: bridge: fix a null pointer dereference in br_afspec

2017-06-05 Thread Roopa Prabhu
On Mon, Jun 5, 2017 at 3:26 PM, Nikolay Aleksandrov wrote: > We might call br_afspec() with p == NULL which is a valid use case if > the action is on the bridge device itself, but the bridge tunnel code > dereferences the p pointer without checking, so check if p is null > first. > > Reported-by:

[PATCH net] net: bridge: fix a null pointer dereference in br_afspec

2017-06-05 Thread Nikolay Aleksandrov
We might call br_afspec() with p == NULL which is a valid use case if the action is on the bridge device itself, but the bridge tunnel code dereferences the p pointer without checking, so check if p is null first. Reported-by: Gustavo A. R. Silva Fixes: efa5356b0d97 ("bridge: per vlan dst_metadat