Re: [PATCH] mm, swap: Potential NULL dereference in get_swap_page_of_type()

Daniel Jordan
2019-01-14T23:40:42Z

On Mon, Jan 14, 2019 at 11:43:10AM +0300, Dan Carpenter wrote:
> I'm really terribly ignorant when it comes to things like this... To me
> it looked like the barrier in alloc_swap_info() was enough but when so
> many smarter people disagree then I must be wrong. I'd like to help,
> but I sort of feel unqualified.
>
> Could someone else take care of it?

I'm not the most qualified person either, but I gave it a try anyway. Patch to
follow.