All of lore.kernel.org
 help / color / mirror / Atom feed
* 回复: [PATCH] usb: f_fs-aio-simple: add NULL checks for malloc calls
@ 2026-08-17  6:40 晏龙龙
  2026-08-17  6:53 ` gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: 晏龙龙 @ 2026-08-17  6:40 UTC (permalink / raw)
  To: gregkh, longlong yan; +Cc: linux-usb, linux-kernel

[-- Attachment #1: Type: text/html, Size: 21616 bytes --]

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

* Re: 回复: [PATCH] usb: f_fs-aio-simple: add NULL checks for malloc calls
  2026-08-17  6:40 回复: [PATCH] usb: f_fs-aio-simple: add NULL checks for malloc calls 晏龙龙
@ 2026-08-17  6:53 ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2026-08-17  6:53 UTC (permalink / raw)
  To: 晏龙龙; +Cc: linux-usb, linux-kernel

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

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

end of thread, other threads:[~2026-08-17  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17  6:40 回复: [PATCH] usb: f_fs-aio-simple: add NULL checks for malloc calls 晏龙龙
2026-08-17  6:53 ` gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.