kmap_high calls BUG()

Ritesh Ranjan r.ranjan789 at gmail.com
Thu Nov 21 10:47:51 EST 2013


*Sorry for the previous incomplete mail*


In highmem.c, the function kmap_high() does the following :

BUG_ON(pkmap_count[PKMAP_NR(vaddr)] < 2);


Why would this be a " serious bug"?
Don't usable entry have pkmap_count[] value as 0. (in map_new_virtual() )
    if (!pkmap_count[last_pkmap_nr])

            break;


How does that work! usable entries have pkmap_count zero but any value
less than 2 is a bug!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131121/da045da5/attachment-0001.html 


More information about the Kernelnewbies mailing list