[lkml]   [2018]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: qualcomm: rmnet: move null check on dev before dereferecing it
From: Colin King <>
Date: Sat, 24 Nov 2018 15:03:02 +0000

> From: Colin Ian King <>
> Currently dev is dereferenced by the call dev_net(dev) before dev is null
> checked. Fix this by null checking dev before the potential null
> pointer dereference.
> Detected by CoverityScan, CID#1462955 ("Dereference before null check")
> Fixes: 23790ef12082 ("net: qualcomm: rmnet: Allow to configure flags for existing devices")
> Signed-off-by: Colin Ian King <>

Applied to net-next.

 \ /
  Last update: 2018-11-25 02:41    [W:0.046 / U:1.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site