Files
linux/drivers/hwmon
Bart Van Assche 20fd1648f3 scsi: core: Convert INQUIRY information
Currently the vendor, model, and revision members of struct scsi_device
are pointers to fixed-length strings that are not NUL-terminated.
Fixed-precision format specifiers (e.g., "%.8s") are required whenever
they are printed and strncmp() must be used to compare these fields.
This is error-prone.

Convert these fields to fixed-size character arrays within struct
scsi_device. Remove an !sdev->model check because sdev->model is now
guaranteed not to be NULL.

This patch fixes a bug in the qla2xxx driver. It makes the following
code safe:

		if (state_flags & BIT_4)
			scmd_printk(KERN_WARNING, cp,
			    "Unsupported device '%s' found.\n",
			    cp->device->vendor);

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Brian Bunker <brian@purestorage.com>
Link: https://patch.msgid.link/20260515205222.1754621-4-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2026-05-22 21:49:05 -04:00
..
2026-03-30 19:45:04 -07:00
2025-03-18 08:03:40 -07:00
2026-03-30 19:45:06 -07:00
2025-10-15 11:02:43 -07:00
2026-04-11 00:02:13 -07:00
2025-05-12 18:05:54 -07:00
2026-03-30 19:45:06 -07:00
2025-11-26 09:03:56 -08:00
2025-10-15 11:02:43 -07:00
2025-10-17 05:59:12 -07:00
2026-04-11 00:02:13 -07:00
2026-04-11 00:02:13 -07:00
2026-01-31 07:38:31 -08:00
2025-09-09 05:26:11 -07:00