Re: [PATCH v1] tty: n_tty: use kvzalloc/kvfree for line discipline data

From: Greg KH

Date: Tue Aug 18 2026 - 02:07:29 EST


On Tue, Aug 18, 2026 at 11:09:49AM +0800, Xin Chen wrote:
>
> On 8/17/2026 10:14 PM, Greg KH wrote:
> > What do you mean "target kernel"? This is for 7.3-final, right?
>
> Sorry for the confusion. This patch is based on linux-next 7.2.0-rc7,
> targeting 7.2-final (or 7.3 if the merge window has already closed).
> The wording "target kernel" was poor; what I meant is that
> kvzalloc(sizeof(*ldata), GFP_KERNEL) is used intentionally to keep
> this patch cleanly backportable to kernels older than v6.6 where
> kvzalloc_obj() is not yet available.

That doesn't matter when getting patches merged, otherwise no one would
ever use the newer and proper apis. Please write code for Linus's tree
first. Worry about older kernels later after changes are merged
properly.

thanks,

greg k-h