aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2025-07-01 14:04:26 +0000
committerPratyush Yadav <[email protected]>2025-07-03 15:12:17 +0000
commit2e3a7476ec3989e77270b9481e76e137824b17c0 (patch)
tree09e6a1f14249d132f4a70a5ffccc12044a845923 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdt-bindings: mtd: jedec,spi-nor: Add atmel,at26* compatible string (diff)
downloadkernel-2e3a7476ec3989e77270b9481e76e137824b17c0.tar.gz
kernel-2e3a7476ec3989e77270b9481e76e137824b17c0.zip
mtd: spi-nor: Fix spi_nor_try_unlock_all()
Commit ff67592cbdfc ("mtd: spi-nor: Introduce spi_nor_set_mtd_info()") moved all initialization of the mtd fields at the end of spi_nor_scan(). Normally, the mtd info is only needed for the mtd ops on the device, with one exception: spi_nor_try_unlock_all(), which will also make use of the mtd->size parameter. With that commit, the size will always be zero because it is not initialized. Fix that by not using the size of the mtd_info struct, but use the size from struct spi_nor_flash_parameter. Fixes: ff67592cbdfc ("mtd: spi-nor: Introduce spi_nor_set_mtd_info()") Cc: [email protected] Reported-by: Jean-Marc Ranger <[email protected]> Closes: https://lore.kernel.org/all/DM6PR06MB561177323DC5207E34AF2A06C547A@DM6PR06MB5611.namprd06.prod.outlook.com/ Tested-by: Jean-Marc Ranger <[email protected]> Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions