Re: KASAN: use-after-free Read in v4l2_release (3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This would work but another approach would be to to allocate "usbvision"
with devm_kzalloc(&dev->dev,...  I believe that would postpone the free
enough to solve the use after free but I hadn't tested it yet.  But
other drivers do that so hopefully it works.

regards,
dan carpenter



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux