Re: [f2fs-dev] [PATCH 11/30] swsusp: don't pass a stack address to blkdev_get_by_path

2023-06-09 Thread Rafael J. Wysocki
On Thu, Jun 8, 2023 at 1:03 PM Christoph Hellwig wrote: > > holder is just an on-stack pointer that can easily be reused by other calls, > replace it with a static variable that doesn't change. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Hannes Reinecke Acked-by: Rafael J. Wysocki >

[f2fs-dev] [PATCH 11/30] swsusp: don't pass a stack address to blkdev_get_by_path

2023-06-08 Thread Christoph Hellwig
holder is just an on-stack pointer that can easily be reused by other calls, replace it with a static variable that doesn't change. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- kernel/power/swap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git