aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/mon/mon_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/mon/mon_text.c')
-rw-r--r--drivers/usb/mon/mon_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c
index f961a770cee2..2fd39b4fa166 100644
--- a/drivers/usb/mon/mon_text.c
+++ b/drivers/usb/mon/mon_text.c
@@ -238,7 +238,7 @@ static int mon_text_open(struct inode *inode, struct file *file)
238 int rc; 238 int rc;
239 239
240 mutex_lock(&mon_lock); 240 mutex_lock(&mon_lock);
241 mbus = inode->u.generic_ip; 241 mbus = inode->i_private;
242 ubus = mbus->u_bus; 242 ubus = mbus->u_bus;
243 243
244 rp = kzalloc(sizeof(struct mon_reader_text), GFP_KERNEL); 244 rp = kzalloc(sizeof(struct mon_reader_text), GFP_KERNEL);
@@ -401,7 +401,7 @@ static int mon_text_release(struct inode *inode, struct file *file)
401 struct mon_event_text *ep; 401 struct mon_event_text *ep;
402 402
403 mutex_lock(&mon_lock); 403 mutex_lock(&mon_lock);
404 mbus = inode->u.generic_ip; 404 mbus = inode->i_private;
405 405
406 if (mbus->nreaders <= 0) { 406 if (mbus->nreaders <= 0) {
407 printk(KERN_ERR TAG ": consistency error on close\n"); 407 printk(KERN_ERR TAG ": consistency error on close\n");