[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110228.123835.245399145.davem@davemloft.net>
Date: Mon, 28 Feb 2011 12:38:35 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: lars.ellenberg@...bit.com
Cc: linux-kernel@...r.kernel.org, trivial@...nel.org,
holger@...zenberger.org, kaber@...sh.net,
netfilter-devel@...r.kernel.org, stable@...nel.org
Subject: Re: [patch] fix nla_policy_len to actually _iterate_ over the
policy
From: Lars Ellenberg <lars.ellenberg@...bit.com>
Date: Mon, 28 Feb 2011 21:35:59 +0100
> Currently nla_policy_len always returns n * NLA_HDRLEN:
> It loops, but does not advance it's iterator.
> NLA_UNSPEC == 0 does not contain a .len in any policy.
>
> Trivially fixed by adding p++.
>
> Signed-off-by: Lars Ellenberg <lars.ellenberg@...bit.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists