Re: 回复: [PATCH ] usb: f_fs-aio-simple: add NULL checks for malloc calls
gregkh <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <2026081739-outbreak-sternum-837b@gregkh> |
On Mon, Aug 17, 2026 at 02:40:20PM +0800, 晏龙龙 wrote: > It's userspace, why not just return an error and let the kernel clean up > the memory automatically? > Or better yet, just have a goto to jump to the end of the function where > all of this code already lives? That's what I wrote, not you? Also, please don't send html email, or top-post. confused, greg k-h