Commit fcbca60
committed
regions_mm: vmh_free: Prevent null pointer dereference
The vmh_free function may have referenced a null pointer if an invalid
pointer was passed to it. Before referencing the allocator array item,
check if it has been initialized.
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>1 parent b95fc72 commit fcbca60
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
| |||
0 commit comments