Bug 13854
Summary: | found possible null pointer dereference in file ray_cs.c | ||
---|---|---|---|
Product: | Drivers | Reporter: | Martin Ettl (ettl.martin) |
Component: | network-wireless | Assignee: | John W. Linville (linville) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | johannes, linville |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.30 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
0001-ray_cs-avoid-potential-null-dereference-in-ray_get_.patch
0001-ray_cs-remove-bocus-NULL-check-at-head-of-ray_get_w.patch |
Description
Martin Ettl
2009-07-27 14:01:36 UTC
Give it some thought, man. How can static inline void *netdev_priv(const struct net_device *dev) { return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); } ever return NULL? (I guess I meant to say: don't run static checkers if you're not willing to understand the result) Created attachment 22510 [details]
0001-ray_cs-avoid-potential-null-dereference-in-ray_get_.patch
Ha! Good point, Johannes... (In reply to comment #2) > (I guess I meant to say: don't run static checkers if you're not willing to > understand the result) :-) Created attachment 22511 [details]
0001-ray_cs-remove-bocus-NULL-check-at-head-of-ray_get_w.patch
(In reply to comment #5) > (In reply to comment #2) > > (I guess I meant to say: don't run static checkers if you're not willing to > > understand the result) > > :-) That should read "Sorry, I'm ashamed to not have looked into it properly and to have wasted your time on a driver for hardware that nobody owns any more". commit 11866efa9b5d6f321a2625b7f6837ba55c4c2e4b Author: John W. Linville <linville@tuxdriver.com> Date: Mon Jul 27 10:56:41 2009 -0400 ray_cs: remove bogus NULL check at head of ray_get_wireless_stats Reported-by: Johannes Berg <johannes@sipsolutions.net> Cc: Martin Ettl <ettl.martin@gmx.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> |