]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/videocodec.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6-omap-h63xx.git] / drivers / media / video / videocodec.c
index 2ae3fb250630be9dd7f51dfa82e6b61e36375ae1..87951ec8254f47cd8be33557237cd7bedf54d902 100644 (file)
@@ -86,8 +86,8 @@ videocodec_attach (struct videocodec_master *master)
        }
 
        dprintk(2,
-               "videocodec_attach: '%s', type: %x, flags %lx, magic %lx\n",
-               master->name, master->type, master->flags, master->magic);
+               "videocodec_attach: '%s', flags %lx, magic %lx\n",
+               master->name, master->flags, master->magic);
 
        if (!h) {
                dprintk(1,
@@ -346,7 +346,10 @@ videocodec_build_table (void)
                size);
 
        kfree(videocodec_buf);
-       videocodec_buf = (char *) kmalloc(size, GFP_KERNEL);
+       videocodec_buf = kmalloc(size, GFP_KERNEL);
+
+       if (!videocodec_buf)
+               return 0;
 
        i = 0;
        i += scnprintf(videocodec_buf + i, size - 1,