BUG_ON(!pd); 
static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg){	struct pktcdvd_device *pd = inode->i_bdev->bd_disk->private_data;	VPRINTK("pkt_ioctl: cmd %x, dev %d:%d\n", cmd, imajor(inode), iminor(inode));	BUG_ON(!pd);	switch (cmd) {	/*	 * forward selected CDROM ioctls to CD-ROM, for UDF	 */	case CDROMMULTISESSION:	case CDROMREADTOCENTRY:	case CDROM_LAST_WRITTEN:	case CDROM_SEND_PACKET:	case SCSI_IOCTL_SEND_COMMAND:		return blkdev_ioctl(pd->bdev->bd_inode, file, cmd, arg);	case CDROMEJECT:		/*		 * The door gets locked when the device is opened, so we		 * have to unlock it or else the eject command fails.		 */		pkt_lock_door(pd, 0);		return blkdev_ioctl(pd->bdev->bd_inode, file, cmd, arg);	default:		printk("pktcdvd: Unknown ioctl for %s (%x)\n", pd->name, cmd);		return -ENOTTY;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/610827dee82731c7be5a135d750d194ac56881a9/pktcdvd.c/buggy/drivers/block/pktcdvd.c