Re: blkdev_get() HOWTO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >         printk(KERN_INFO "using device %s\n", bdev->bd_disk->disk_name);


Check if name is not NULL before printing...

if(bdev->bd_disk->disk_name)
	....

if its not the problem may be a oops trace can help.

Muthu.



> >         blkdev_put(bdev, BDEV_RAW);
> > no_get:
> >         bdput(bdev);
> > no_bdev:
> >         return;
> > }
>
> This function gets called inside proc_file_write. I'm using a 2.6.0
> kernel. Any hint on what I get wrong ?
>
> Thanks,
>
> 	Xav
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux