Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1604651

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

From Stefan Wahren <stefan.wahren@i2se.com>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: vc04_services: fix NULL pointer dereference on pointer 'service'
Date 2017-03-20 15:50 +0100
Message-ID <tn6Nb-67a-9@gated-at.bofh.it> (permalink)
References <tn6tP-5Wi-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[add Mauro to CC]

Am 20.03.2017 um 15:08 schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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@canonical.com>

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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] staging: vc04_services: fix NULL pointer dereference on pointer 'service' Colin King <colin.king@canonical.com> - 2017-03-20 15:30 +0100
  Re: [PATCH] staging: vc04_services: fix NULL pointer dereference on  pointer 'service' Stefan Wahren <stefan.wahren@i2se.com> - 2017-03-20 15:50 +0100

csiph-web