linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / pnp / pnpbios / rsparser.c
index ef508a4..5e38cd7 100644 (file)
@@ -3,6 +3,7 @@
  *
  */
 
+#include <linux/config.h>
 #include <linux/ctype.h>
 #include <linux/pnp.h>
 #include <linux/pnpbios.h>
@@ -447,7 +448,11 @@ pnpbios_parse_resource_option_data(unsigned char * p, unsigned char * end, struc
                        break;
 
                case SMALL_TAG_END:
-                       return p + 2;
+                       if (option_independent != option)
+                               printk(KERN_WARNING "PnPBIOS: Missing SMALL_TAG_ENDDEP tag\n");
+                       p = p + 2;
+                       return (unsigned char *)p;
+                       break;
 
                default: /* an unkown tag */
                        len_err: