V4L/DVB (12773): tm6000: fix module unregister
authorMichel Ludwig <michel.ludwig@gmail.com>
Fri, 15 Jun 2007 14:02:56 +0000 (11:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:39:26 +0000 (00:39 -0300)
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-video.c

index ffd2fe7ed9846455b12433acdf35bcf518dbf054..41073ed2cb594f44ad79ef5dab85f93ced7b44dd 100644 (file)
@@ -1535,7 +1535,7 @@ int tm6000_v4l2_unregister(struct tm6000_core *dev)
        list_for_each_safe(pos, tmp, &tm6000_corelist) {
                h = list_entry(pos, struct tm6000_core, tm6000_corelist);
                if (h == dev) {
-                       list_del(list);
+                       list_del(pos);
                }
        }