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

Skip to content
Commit 297bbec9 authored by Patrick Daly's avatar Patrick Daly
Browse files

mm: swap: Add null pointer check



Address an unlikely null pointer dereference.
Fixes commit 7b5df13b ("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>
parent 55cb9664
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