]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: sysfs_emit: Remove PAGE_SIZE alignment check
authorLucas Wei <lucaswei@google.com>
Fri, 18 Mar 2022 07:14:01 +0000 (15:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2022 08:01:35 +0000 (09:01 +0100)
commitd6ea756586007009dad41487c5419ff25e9b514f
treeca0d387b3fa17e2d6d2d2ea5cec8d2b58798f1c6
parentb8fe47f81d6a85f6a18d35b3a9b072f554551f79
fs: sysfs_emit: Remove PAGE_SIZE alignment check

For kernel releases older than 4.20, using the SLUB alloctor will cause
this alignment check to fail as that allocator did NOT align kmalloc
allocations on a PAGE_SIZE boundry.

Remove the check for these older kernels as it is a false-positive and
causes problems on many devices.

Signed-off-by: Lucas Wei <lucaswei@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c