Messages in this thread | | | From | schwidefsky@de ... | Date | Wed, 15 Nov 2000 14:24:33 +0100 | Subject | Re: Memory management bug |
| |
>> +extern pte_t empty_bad_pte_table[]; >> extern __inline__ void free_pte_fast(pte_t *pte) >> { >> + if (pte == empty_bad_pte_table) >> + return; > >I guess that should be BUG() instead of return, so that the callers can be >fixed. Not really. pte_free and pmd_free are called from the common mm code but the concept of empty_bad_{pte,pmd}_table is architecture dependent. The trouble starts in arch/???/mm/init.c where these special arrays are inserted into the paging tables. So the solution to the problem should be in architecture dependent files too.
blue skies, Martin
Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247 E-Mail: schwidefsky@de.ibm.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |