Re: [PATCH v3 1/2] wifi: nxpwifi: bound histogram debugfs output
From: Jeff Chen
Date: Mon Sep 21 2026 - 04:11:02 EST
On Sat, Sep 19, 2026 at 12:02:52 PM +0800, Heyang Tan wrote:
> nxpwifi_histogram_read() writes histogram entries to a PAGE_SIZE buffer.
> Each entry is formatted with sprintf(), so enough populated buckets can
> write past the allocation.
>
> Use scnprintf() with the remaining buffer space when formatting the
> histogram.
Using seq_file may be a better long-term solution, but the current
scnprintf() fix looks good to me.
Reviewed-by: Jeff Chen <jeff.chen_1@xxxxxxx>