RDMA/uverbs: Fix typo of sizeof argument
stable inclusion from stable-v5.10.198 commit 5a4a6a47e0740653e416d5dda370c8aed2d7a3d4 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5a4a6a47e0740653e416d5dda370c8aed2d7a3d4 -------------------------------- commit c489800e upstream. Since size of 'hdr' pointer and '*hdr' structure is equal on 64-bit machines issue probably didn't cause any wrong behavior. But anyway, fixing of typo is required. Fixes: da0f60df ("RDMA/uverbs: Prohibit write() calls with too small buffers") Co-developed-by:Ivanov Mikhail <ivanov.mikhail1@huawei-partners.com> Signed-off-by:
Ivanov Mikhail <ivanov.mikhail1@huawei-partners.com> Signed-off-by:
Konstantin Meskhidze <konstantin.meskhidze@huawei.com> Link: https://lore.kernel.org/r/20230905103258.1738246-1-konstantin.meskhidze@huawei.com Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment