[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2a7877ayd.fsf@baylibre.com>
Date: Wed, 04 Dec 2019 18:39:06 -0800
From: Kevin Hilman <khilman@...libre.com>
To: Colin King <colin.king@...onical.com>,
Maxime Jourdan <mjourdan@...libre.com>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
linux-media@...r.kernel.org, linux-amlogic@...ts.infradead.org,
devel@...verdev.osuosl.org, linux-arm-kernel@...ts.infradead.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: meson: add missing allocation failure check on new_buf
Colin King <colin.king@...onical.com> writes:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently if the allocation of new_buf fails then a null pointer
> dereference occurs when assiging new_buf->vb. Avoid this by returning
> early on a memory allocation failure as there is not much more can
> be done at this point.
>
> Addresses-Coverity: ("Dereference null return")
> Fixes: 3e7f51bd9607 ("media: meson: add v4l2 m2m video decoder driver")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Reviewed-by: Kevin Hilman <khilman@...libre.com>
Powered by blists - more mailing lists