Re: [PATCH v3] virtio: reject shm region if length is zero

2025-05-13 Thread Jason Wang
On Mon, May 12, 2025 at 6:22 AM Sami Uddin wrote: > > From: Sami Uddin > > Prevent usage of shared memory regions where the length is zero, > as such configurations are not valid and may lead to unexpected behavior. > > Signed-off-by: Sami Uddin > --- > v3: > - Use idiomatic 'if (!region->len)'

[PATCH v3] virtio: reject shm region if length is zero

2025-05-11 Thread Sami
From: Sami Uddin Prevent usage of shared memory regions where the length is zero, as such configurations are not valid and may lead to unexpected behavior. Signed-off-by: Sami Uddin --- v3: - Use idiomatic 'if (!region->len)' as suggested by reviewer v2: - Fixed coding style issue: added space