diff options
author | Shiyang Ruan <ruansy.fnst@fujitsu.com> | 2023-02-02 15:33:47 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-04 04:52:24 +0300 |
commit | 388bc034d91d480efa88abc5c8d6e6c8a878b1ab (patch) | |
tree | f5caad36fbd06a9356764f6b1c366839084df939 /sound/soc/codecs/es8328-spi.c | |
parent | aa1e6a932ca652a50a5df458399724a80459f521 (diff) | |
download | linux-388bc034d91d480efa88abc5c8d6e6c8a878b1ab.tar.xz |
fsdax: dax_unshare_iter() should return a valid length
The copy_mc_to_kernel() will return 0 if it executed successfully. Then
the return value should be set to the length it copied.
[akpm@linux-foundation.org: don't mess up `ret', per Matthew]
Link: https://lkml.kernel.org/r/1675341227-14-1-git-send-email-ruansy.fnst@fujitsu.com
Fixes: d984648e428b ("fsdax,xfs: port unshare to fsdax")
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound/soc/codecs/es8328-spi.c')
0 files changed, 0 insertions, 0 deletions