]> err.no Git - linux-2.6/blobdiff - drivers/usb/mon/mon_stat.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[linux-2.6] / drivers / usb / mon / mon_stat.c
index 86ad2b381c4bd9d74e249e6fb2f8cf91efb234f4..c7a595cd648ae2b2f473390b94d0f89b0fb2214f 100644 (file)
@@ -59,10 +59,13 @@ static ssize_t mon_stat_read(struct file *file, char __user *buf,
 
 static int mon_stat_release(struct inode *inode, struct file *file)
 {
+       struct snap *sp = file->private_data;
+       file->private_data = NULL;
+       kfree(sp);
        return 0;
 }
 
-struct file_operations mon_fops_stat = {
+const struct file_operations mon_fops_stat = {
        .owner =        THIS_MODULE,
        .open =         mon_stat_open,
        .llseek =       no_llseek,