[PATCH 5.17 124/298] scsi: sd: Fix potential NULL pointer dereference