if (!warning_printed) { printk(KERN_INFO "pcmcia: Detected deprecated PCMCIA ioctl " "usage.\n"); printk(KERN_INFO "pcmcia: This interface will soon be removed from " "the kernel; please expect breakage unless you upgrade " "to new tools.\n"); printk(KERN_INFO "pcmcia: see http: "utils/kernel/pcmcia/pcmcia.html for details.\n"); warning_printed = 1; }  
static int ds_open(struct inode *inode, struct file *file){    socket_t i = iminor(inode);    struct pcmcia_socket *s;    user_info_t *user;    ds_dbg(0, "ds_open(socket %d)\n", i);    s = pcmcia_get_socket_by_nr(i);    if (!s)	    return -ENODEV;    s = pcmcia_get_socket(s);    if (!s)	    return -ENODEV;    if ((file->f_flags & O_ACCMODE) != O_RDONLY) {	    if (s->pcmcia_state.busy) {		    pcmcia_put_socket(s);		    return -EBUSY;	    }	else	    s->pcmcia_state.busy = 1;    }    user = kmalloc(sizeof(user_info_t), GFP_KERNEL);    if (!user) {	    pcmcia_put_socket(s);	    return -ENOMEM;    }    user->event_tail = user->event_head = 0;    user->next = s->user;    user->user_magic = USER_MAGIC;    user->socket = s;    s->user = user;    file->private_data = user;    if (s->pcmcia_state.present)	queue_event(user, CS_EVENT_CARD_INSERTION);    return 0;} /* ds_open */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c352ec8ab87b065cd2edda171811f49ac7d0d5cd/pcmcia_ioctl.c/buggy/drivers/pcmcia/pcmcia_ioctl.c