Re: [PATCH v2 2/3] nvmem: check for NULL reg_read and reg_write before dereferencing

From: Mika Westerberg
Date: Tue Mar 03 2020 - 05:30:01 EST


On Mon, Mar 02, 2020 at 03:43:02PM +0000, 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().

Hmm, is this patch required at all since you already check the invalid
combinations in the patch 1/3?