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

From: Greg KH

Date: Mon Aug 17 2026 - 11:21:12 EST


On Mon, Aug 17, 2026 at 09:55:26PM +0800, Xin Chen wrote:
> Note: checkpatch warns "Prefer kvzalloc_obj over kvzalloc with
> sizeof", but kvzalloc_obj() was introduced after v6.6 and is not
> available in the target kernel, so kvzalloc(sizeof(*ldata),
> GFP_KERNEL) is used intentionally.

What do you mean "target kernel"? This is for 7.3-final, right?

confused,

greg k-h