Commit a6cf527
committed
preload: don't try to free a zero-size region
in kmem_bootstrap_free() we round the start and end of the range to free
to avoid freeing unrelated records might share the first or last pages
of the range we are freeing. this rounding can result in a range
that is zero or negative size (though negative becomes large positive
because the types are unsigned). in this case there is nothing that
can actually be freed, so just return early.1 parent 7216b1e commit a6cf527
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
951 | 959 | | |
952 | 960 | | |
953 | 961 | | |
| |||
0 commit comments