Re: [PATCH] sysfs: clamp show() return value in sysfs_kf_read()

From: Tejun Heo

Date: Wed May 20 2026 - 17:23:34 EST


Hello,

Two nits:

- Buffer is atomic_write_len ?: PAGE_SIZE, so probably better to clamp
to that than hardcode PAGE_SIZE.

- pr_warn() instead of bare printk()?

Thanks.

--
tejun