Re: [PATCH 1/2] ne.c fix for hibernate and rmmod oops fix

From: Atsushi Nemoto
Date: Sat Aug 30 2008 - 11:04:17 EST


On Fri, 29 Aug 2008 21:44:25 -0500, David Fries <david@xxxxxxxxx> wrote:
> + if (!strcmp(res->name, BAD_STR))
> + dev->mem_end = BAD;

The res->name might be NULL. You should check it first.

if (res->name && !strcmp(res->name, BAD_STR))
dev->mem_end = BAD;

---
Atsushi Nemoto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/