aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
diff options
context:
space:
mode:
authorShichao Lai <[email protected]>2024-05-26 01:27:45 +0000
committerGreg Kroah-Hartman <[email protected]>2024-06-04 13:36:28 +0000
commit16637fea001ab3c8df528a8995b3211906165a30 (patch)
treea76d3ff8af2e8bb5ab6af82c13089b78a9708ab5 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
parentusb: typec: ucsi: Ack also failed Get Error commands (diff)
downloadkernel-16637fea001ab3c8df528a8995b3211906165a30.tar.gz
kernel-16637fea001ab3c8df528a8995b3211906165a30.zip
usb-storage: alauda: Check whether the media is initialized
The member "uzonesize" of struct alauda_info will remain 0 if alauda_init_media() fails, potentially causing divide errors in alauda_read_data() and alauda_write_lba(). - Add a member "media_initialized" to struct alauda_info. - Change a condition in alauda_check_media() to ensure the first initialization. - Add an error check for the return value of alauda_init_media(). Fixes: e80b0fade09e ("[PATCH] USB Storage: add alauda support") Reported-by: xingwei lee <[email protected]> Reported-by: yue sun <[email protected]> Reviewed-by: Alan Stern <[email protected]> Signed-off-by: Shichao Lai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions