summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2026-06-10 07:57:24 +0300
committerCarlos Maiolino <cem@kernel.org>2026-06-10 13:21:52 +0300
commit84eec3f7fc73144d1a230c9e8ad92721e37dcaab (patch)
tree90bc4ca426294298a342fc4f615190a03c3f29f0 /include/linux/platform_data
parent327e58826eb72f8bae9419cf1a4e722b57c85694 (diff)
downloadlinux-84eec3f7fc73144d1a230c9e8ad92721e37dcaab.tar.xz
xfs: fix pointer arithmetic error on 32-bit systems
The translation of the old XFS_BMBT_KEY_ADDR macro into a static function is not correct on 32-bit systems because the sizeof() argument went from being a xfs_bmbt_key_t (i.e. a struct) to a (struct xfs_bmbt_key *) (i.e. a pointer to the same struct). On 64-bit systems this turns out ok because they are the same size, but on 32-bit systems this is catastrophic because they are not the same size. So far there have been no complaints, most likely because the xfs developers urge against running it on 32-bit systems. But this needs fixing asap. Cc: stable@vger.kernel.org # v6.12 Fixes: 79124b37400635 ("xfs: replace shouty XFS_BM{BT,DR} macros") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions