mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] scsi: Use vmalloc_array and vcalloc to simplify code
@ 2025-08-06 12:46 Qianfeng Rong
  2025-08-06 12:46 ` [PATCH v3 1/2] scsi: ipr: use vmalloc_array " Qianfeng Rong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Qianfeng Rong @ 2025-08-06 12:46 UTC (permalink / raw)
  To: bvanassche, Brian King, James E.J. Bottomley, Martin K. Petersen,
	open list:SCSI SUBSYSTEM, open list
  Cc: Qianfeng Rong

Instead of using array_size, use a function that takes care of both the
multiplication and the overflow checks.

Compile-tested only.

Qianfeng Rong (2):
  scsi: ipr: Use vmalloc_array to simplify code
  scsi: scsi_debug: Use vcalloc to simplify code

 drivers/scsi/ipr.c        | 8 ++++----
 drivers/scsi/scsi_debug.c | 6 ++----
 2 files changed, 6 insertions(+), 8 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-20  1:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-06 12:46 [PATCH v3 0/2] scsi: Use vmalloc_array and vcalloc to simplify code Qianfeng Rong
2025-08-06 12:46 ` [PATCH v3 1/2] scsi: ipr: use vmalloc_array " Qianfeng Rong
2025-08-06 12:46 ` [PATCH v3 2/2] scsi: scsi_debug: use vcalloc " Qianfeng Rong
2025-08-06 15:20   ` Bart Van Assche
2025-08-20  1:56 ` [PATCH v3 0/2] scsi: Use vmalloc_array and " Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®