[pso] [PSO][Tema3][Linux] bio_add_page oops
catalina m
catalinamacalet at gmail.com
Tue May 11 10:37:36 EEST 2010
Buna,
Am urmatoarea secventa de cod:
bio = bio_alloc(GFP_KERNEL,1);
if (bio == NULL){
printk(KERN_ERR "NULL bio\n");
goto end_error;
}else{
printk(KERN_ERR "bio OK\n");
}
page =alloc_page(GFP_ATOMIC);
if (page == NULL){
printk(KERN_ERR "NULL PAGE!!!\n");
goto end_error;
}else
printk(KERN_ERR "PAGE OK\n");
bio_add_page(data->bio,page,KERNEL_SECTOR_SIZE,0);
Iar la bio_add_page apare un oops:
bio OK
PAGE OK
BUG: unable to handle kernel NULL pointer dereference at 00000060
IP: [<c01f8c71>] bio_add_page+0x11/0x50
*pdpt = 000000000eb92001 *pde = 0000000000000000
Oops: 0000 [#1] SMP
A mai avut cineva o problema similara sau aveti idee de ce ar putea sa
apara?
Mersi,
Catalina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/pso.html/attachments/20100511/78091f69/attachment.htm>
More information about the pso
mailing list