[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090212.170027.225580891.davem@davemloft.net>
Date: Thu, 12 Feb 2009 17:00:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: inaky@...ux.intel.com
Cc: wimax@...uxwimax.org, netdev@...r.kernel.org
Subject: Re: [PATCH] wimax: fix oops in wimax_dev_get_by_genl_info() when
looking up non-wimax iface
From: Inaky Perez-Gonzalez <inaky@...ux.intel.com>
Date: Thu, 12 Feb 2009 15:04:52 -0800
> When a non-wimax interface is looked up by the stack, a bad pointer is
> returned when the looked-up interface is not found in the list (of
> registered WiMAX interfaces). This causes an oops in the caller when
> trying to use the pointer.
>
> Fix by properly setting the pointer to NULL if we don't exit from the
> list_for_each() with a found entry.
>
> Signed-off-by: Inaky Perez-Gonzalez <inaky@...ux.intel.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists