Loading
fbdev: hyperv_fb: Simplify hvfb_putmem
mainline inclusion from mainline-v6.14-rc7 commit f5e728a50bb17336a20803dde488515b833ecd1d category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBY436 CVE: CVE-2025-21976 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5e728a50bb17336a20803dde488515b833ecd1d -------------------------------- The device object required in 'hvfb_release_phymem' function for 'dma_free_coherent' can also be obtained from the 'info' pointer, making 'hdev' parameter in 'hvfb_putmem' redundant. Remove the unnecessary 'hdev' argument from 'hvfb_putmem'. Signed-off-by:Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by:
Michael Kelley <mhklinux@outlook.com> Tested-by:
Michael Kelley <mhklinux@outlook.com> Link: https://lore.kernel.org/r/1740845791-19977-2-git-send-email-ssengar@linux.microsoft.com Signed-off-by:
Wei Liu <wei.liu@kernel.org> Message-ID: <1740845791-19977-2-git-send-email-ssengar@linux.microsoft.com> Signed-off-by:
Xiangwei Li <liwei728@huawei.com>