On Sun, 12 Apr 2026 15:50:06 +0000
John Groves <[email protected]> wrote:

> From: John Groves <[email protected]>
> 
> __fsdev_dax_direct_access() returns -EFAULT without setting *kaddr when
> dax_pgoff_to_phys() returns -1 (pgoff out of range). The return value
> was ignored, leaving kaddr uninitialized before being passed to
> fsdev_write_dax().
> 
> Check the return value and propagate the error.
> 
> Thanks to Dan Carpenter and the smatch project for reporting this.
> 
> Signed-off-by: John Groves <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>

Reply via email to