[qca-nss-clients] Check to identify if qdisc is of type nss

There is no check to ensure if qdisc is allocated by nss or not. It
simply type cast the private structure of qdisc to nss qdisc. If the
private area of a non-nss qdisc is accessed and there is size mismatch
then it can cause out of boundary memory access. This is what happen at
boot time since by default qdisc is configured as “noqueue”.

Change-Id: I79a730c53eb60f1ff45e0162d64438491c4259df
Signed-off-by: Adil Irfan <airfan@codeaurora.org>
1 file changed