Re: [PATCH] PM: hibernate: use __get_safe_page() rather than touching the list.

From: Greg KH
Date: Fri Sep 22 2023 - 05:28:50 EST


On Thu, Sep 21, 2023 at 01:00:45PM -0400, Brian Geffon wrote:
> We found at least one situation where the safe pages list was empty and
> get_buffer() would gladly try to use a NULL pointer.
>
> Signed-off-by: Brian Geffon <bgeffon@xxxxxxxxxx>
> Fixes: 8357376 ("swsusp: Improve handling of highmem")
> Cc: stable@xxxxxxxxxxxxxxx
>
> Change-Id: Ibb43a9b4ac5ff2d7e3021fdacc08e116650231e9

Please always use checkpatch.pl so that maintainers don't have to ask
you to use checkpatch.pl :(