b43: LP-PHY: Fix a bug in the B2062 channel tune path
[pandora-kernel.git] / scripts / basic / fixdep.c
index 6bc7e7c..72c1520 100644 (file)
@@ -249,6 +249,8 @@ void parse_config_file(char *map, size_t len)
        found:
                if (!memcmp(q - 7, "_MODULE", 7))
                        q -= 7;
+               if( (q-p-7) < 0 )
+                       continue;
                use_config(p+7, q-p-7);
        }
 }
@@ -371,10 +373,11 @@ void print_deps(void)
 void traps(void)
 {
        static char test[] __attribute__((aligned(sizeof(int)))) = "CONF";
+       int *p = (int *)test;
 
-       if (*(int *)test != INT_CONF) {
+       if (*p != INT_CONF) {
                fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n",
-                       *(int *)test);
+                       *p);
                exit(2);
        }
 }