Re: [PATCH] staging: vc04_services: fix NULL pointer dereference on pointer 'service'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[add Mauro to CC]

Am 20.03.2017 um 15:08 schrieb Colin King:
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Currently, if pservice is null then service is set to NULL and immediately
afterwards service is dereferenced causing a null pointer dereference. Fix
this by bailing out early of the function with a null return.

Detected by CoverityScan, CID#1419681 ("Explicit null dereferenced")

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Acked-by: Stefan Wahren <stefan.wahren@xxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux