[PATCH 5.18 142/339] scsi: sd: Fix potential NULL pointer dereference