Re: [PATCH][next] mqprio: fix potential null pointer dereference on opt

2017-10-19 Thread David Miller
From: Colin King Date: Tue, 17 Oct 2017 16:01:30 +0100 > From: Colin Ian King > > The pointer opt has a null check however before for this check opt is > dereferenced when len is initialized, hence we potentially have a null > pointer deference on opt. Avoid this by checking for a null opt bef

[PATCH][next] mqprio: fix potential null pointer dereference on opt

2017-10-17 Thread Colin King
From: Colin Ian King The pointer opt has a null check however before for this check opt is dereferenced when len is initialized, hence we potentially have a null pointer deference on opt. Avoid this by checking for a null opt before dereferencing it. Detected by CoverityScan, CID#1458234 ("Dere