Re: [PATCH v2] iio: proximity: as3935: fix use-after-free on device remove

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

 



On Fri, Mar 8, 2019 at 5:33 PM Tomasz Duszynski <tduszyns@xxxxxxxxx> wrote:
>
>
> So perhaps that change deserves a separate patch because it smells like
> a code cleanup.

Not really. This patch fixes the order in which resources are torn
down on release().
You do this by fixing the order by which devm-resources are allocated
on probe().

So it's a fundamental use-after-free fix, and not really a cleanup.
But I'm happy to split into multiple patches if you want ?



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux