Re: [PATCH v2] virtio-snd: Enhance error handling for invalid transfers

2024-04-05 Thread Manos Pitsidianakis
ping On Fri, 22 Mar 2024 13:08, Zheyu Ma wrote: This patch improves error handling in virtio_snd_handle_tx_xfer() and virtio_snd_handle_rx_xfer() in the VirtIO sound driver. Previously, 'goto' statements were used for error paths, leading to unnecessary processing and potential null pointer

[PATCH v2] virtio-snd: Enhance error handling for invalid transfers

2024-03-22 Thread Zheyu Ma
This patch improves error handling in virtio_snd_handle_tx_xfer() and virtio_snd_handle_rx_xfer() in the VirtIO sound driver. Previously, 'goto' statements were used for error paths, leading to unnecessary processing and potential null pointer dereferences. Now, 'continue' is used to skip the rest