[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5030fbd1-baca-6e6e-de76-516991d3407c@linaro.org>
Date: Thu, 5 Mar 2020 17:03:17 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Nicholas Johnson <nicholas.johnson-opensource@...look.com.au>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: Mika Westerberg <mika.westerberg@...ux.intel.com>
Subject: Re: [PATCH v2 2/3] nvmem: check for NULL reg_read and reg_write
before dereferencing
On 02/03/2020 15:43, Nicholas Johnson wrote:
> Return -EPERM if reg_read is NULL in bin_attr_nvmem_read() or if
> reg_write is NULL in bin_attr_nvmem_write().
>
> This prevents NULL dereferences such as the one described in
> 03cd45d2e219 ("thunderbolt: Prevent crash if non-active NVMem file is
> read")
>
> Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@...look.com.au>
> ---
> drivers/nvmem/nvmem-sysfs.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
Applied thanks,
--srini
Powered by blists - more mailing lists