#else
ptr = aptr;
#endif
+ if ((unsigned long)ptr < init_mm.start_code ||
+ (unsigned long)ptr > init_mm.end_data) {
+/* printk("address 0x%lx (from 0x%lx %d) is out of range in check_table. wtf?\n", (unsigned long)x, (unsigned long)ptr, i);*/
+ continue;
+ }
+
ret = check_table(P, ptr);
if (ret >= 0) {
/* return value is number of entries to skip */
printk("<7>osi_probe: %s try_harder\n", P->symbol);
#endif
for (offset = 0; offset < datalen; offset++, ptr++) {
+ if ((unsigned long)ptr < init_mm.start_code ||
+ (unsigned long)ptr > init_mm.end_data) {
+/* printk("address 0x%lx (from 0x%lx %d) is out of range in check_table. wtf?\n", (unsigned long)x, (unsigned long)ptr, i);*/
+ continue;
+ }
ret = check_table(P, ptr);
if (ret >= 0) {
/* return value is number of entries to skip */