[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3fa2cbc3-fe81-4364-96c1-b753c52ddc16@suse.com>
Date: Tue, 13 May 2025 13:02:42 +0200
From: Oliver Neukum <oneukum@...e.com>
To: David Wang <00107082@....com>, Oliver Neukum <oneukum@...e.com>
Cc: mathias.nyman@...el.com, gregkh@...uxfoundation.org,
stern@...land.harvard.edu, surenb@...gle.com, kent.overstreet@...ux.dev,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] USB: core: add a memory pool to urb for
host-controller private data
On 13.05.25 11:49, David Wang wrote:
> Hi, I have one question about mem flags.
> If usb_submit_urb wants a memory in context of flags A, say GFP_ATOMIC, but I already have a memory alloc with flags B and its size
> is big enough, is it safe to return this memory to usb_submit_urb which is in the context of flags A?
Yes, that is perfectly safe.
HTH
Oliver
Powered by blists - more mailing lists