Re: [PATCH v7 1/2] scsi: sd: Fix build warning in sd_revalidate_disk()
From: Bart Van Assche
Date: Tue Aug 19 2025 - 15:26:45 EST
On 8/16/25 1:53 PM, Abinash Singh wrote:
+ kfree(lim);
+ kfree(buffer);
The traditional order for kfree() statements is the opposite order of
the corresponding kmalloc() calls. With or without this change:
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>