Re: [PATCH 04/17] Fix use of unallocated memory for MSA2xxxenclosure device data.
From: Andrew Morton
Date: Thu Nov 12 2009 - 17:45:47 EST
On Wed, 11 Nov 2009 10:50:43 -0600
"Stephen M. Cameron" <scameron@xxxxxxxxxxxxxxxxxx> wrote:
> +#define MAX_MSA2XXX_ENCLOSURES 32
> + if (*nmsa2xxx_enclosures >= MAX_MSA2XXX_ENCLOSURES) {
> + dev_warn(&h->pdev->dev, "Maximum number of MSA2XXX "
> + "enclosures exceeded. Check your hardware "
> + "configuration.");
> + return 0;
> + }
The message would be a bit more helpful if it told the operator what the
limit actually is.
--
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/