Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3890a7b5 authored by Patrick Daly's avatar Patrick Daly Committed by Isaac J. Manjarres
Browse files

mm: swap: Add null pointer check



Address an unlikely null pointer dereference.
Fixes commit 7b5df13bc4b3 ("mm: swap: free up swap on mm reap").

The expected usage of free_swap_slot is that the caller has already
checked that the swap_entry_t is valid.

Change-Id: I85331f817458df7f6cb0c0b387ca34c345f8c513
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent bd9e19a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment