mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
fbdev: pvr2fb: correct user pointer annotation and sentinel initializer
Add __user annotation to buf, as it is passed as a user pointer in pin_user_pages_fast(). Use an empty initializer for the sentinel board-table entry to avoid initializing a function pointer with an integer literal. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202607131247.fpQ6eTc7-lkp@intel.com/ Cc: stable@vger.kernel.org Signed-off-by: Florian Fuchs <fuchsfl@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
3cc2fad376
commit
5dc2e70dd7
@@ -639,7 +639,7 @@ static irqreturn_t __maybe_unused pvr2fb_interrupt(int irq, void *dev_id)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PVR2_DMA
|
||||
static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
|
||||
static ssize_t pvr2fb_write(struct fb_info *info, const char __user *buf,
|
||||
size_t count, loff_t *ppos)
|
||||
{
|
||||
unsigned long dst, start, end, len;
|
||||
@@ -1077,7 +1077,7 @@ static struct pvr2_board {
|
||||
#ifdef CONFIG_PCI
|
||||
{ pvr2fb_pci_init, pvr2fb_pci_exit, "PCI PVR2" },
|
||||
#endif
|
||||
{ 0, },
|
||||
{ },
|
||||
};
|
||||
|
||||
static int __init pvr2fb_init(void)
|
||||
|
||||
Reference in New Issue
Block a user