Re: [PATCH] gianfar: reduce stack usage in gianfar_ethtool.c

From: Joe Perches
Date: Tue Aug 09 2011 - 22:28:42 EST


On Wed, 2011-08-10 at 10:29 +0800, stufever@xxxxxxxxx wrote:
> Signed-off-by: Wang Shaoyan <wangshaoyan.pt@xxxxxxxxxx>
[]
> diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c
[]
> @@ -686,10 +686,21 @@ static int gfar_ethflow_to_filer_table(struct gfar_private *priv, u64 ethflow, u
[]
> + if (!local_rqfpr || !local_rqfcr) {
> + pr_err("Out of memory\n");
> + ret = 0;
> + got err;

"got err" is true.

Please compile test your patches before sending them.


--
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/