There are some places using a dereference of NULL to cause a crash.
Use BUG() instead.
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
if(((long)p & PAGE_MASK) != ((long)hdr & PAGE_MASK))
{
printk("Header should be on the same page\n");
- *(int*)0=0;
+ BUG();
}
/* Merge with other free block, or put in list. */
if((((unsigned long)hdr) & (PAGE_SIZE-1)) != 0)
{
printk("Bug\n");
- *(int*)0=0;
+ BUG();
}
free_page(hdr);
}