]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - init/do_mounts_rd.c
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / init / do_mounts_rd.c
index a015e267fd170ff57f1713459c6d72af98e4b516..027a402708de6c7fa505f989b6151f5ea5bf1935 100644 (file)
@@ -79,9 +79,13 @@ identify_ramdisk_image(int fd, int start_block, decompress_fn *decompressor)
        sys_read(fd, buf, size);
 
        *decompressor = decompress_method(buf, size, &compress_name);
-       if (*decompressor) {
+       if (compress_name) {
                printk(KERN_NOTICE "RAMDISK: %s image found at block %d\n",
                       compress_name, start_block);
+               if (!*decompressor)
+                       printk(KERN_EMERG
+                              "RAMDISK: %s decompressor not configured!\n",
+                              compress_name);
                nblocks = 0;
                goto done;
        }