aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atari_pamsnet.c
diff options
context:
space:
mode:
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>2007-05-22 18:35:24 -0400
committerTony Luck <tony.luck@intel.com>2007-05-24 13:14:30 -0400
commitce45b51ac4c3c575c71ab5c91c29bf34c2af6f7d (patch)
tree1f82d87af33434947f92708552b4f27e520fb08e /drivers/net/atari_pamsnet.c
parentd86ebd140963e50238ac397074b1ab7fc7ec1126 (diff)
[IA64] Fix using uninitialized data in _PDC setup
Silly bug in _PDC data setup. Haven't seen any real side-effects of this one yet. But, needs fixing regardless. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'drivers/net/atari_pamsnet.c')
0 files changed, 0 insertions, 0 deletions
end(3, NULL, "(wimax_dev %p)\n", wimax_dev); } /* * wimax_get_netdev_by_info - lookup a wimax_dev from the gennetlink info * * The generic netlink family ID has been filled out in the * nlmsghdr->nlmsg_type field, so we pull it from there, look it up in * the mapping table and reference the wimax_dev. * * When done, the reference should be dropped with * 'dev_put(wimax_dev->net_dev)'. */ struct wimax_dev *wimax_dev_get_by_genl_info( struct genl_info *info, int ifindex) { struct wimax_dev *wimax_dev = NULL; d_fnstart(3, NULL, "(info %p ifindex %d)\n", info, ifindex); spin_lock(&wimax_id_table_lock); list_for_each_entry(wimax_dev, &wimax_id_table, id_table_node) { if (wimax_dev->net_dev->ifindex == ifindex) { dev_hold(wimax_dev->net_dev); goto found; } } wimax_dev = NULL; d_printf(1, NULL, "wimax: no devices found with ifindex %d\n", ifindex); found: spin_unlock(&wimax_id_table_lock); d_fnend(3, NULL, "(info %p ifindex %d) = %p\n", info, ifindex, wimax_dev); return wimax_dev; } /* * wimax_id_table_rm - Remove a gennetlink familiy ID / wimax_dev mapping * * @id: family ID to remove from the table */ void wimax_id_table_rm(struct wimax_dev *wimax_dev) { spin_lock(&wimax_id_table_lock); list_del_init(&wimax_dev->id_table_node); spin_unlock(&wimax_id_table_lock); } /* * Release the gennetlink family id / mapping table * * On debug, verify that the table is empty upon removal. We want the * code always compiled, to ensure it doesn't bit rot. It will be * compiled out if CONFIG_BUG is disabled. */ void wimax_id_table_release(void) { struct wimax_dev *wimax_dev; #ifndef CONFIG_BUG return; #endif spin_lock(&wimax_id_table_lock); list_for_each_entry(wimax_dev, &wimax_id_table, id_table_node) { printk(KERN_ERR "BUG: %s wimax_dev %p ifindex %d not cleared\n", __func__, wimax_dev, wimax_dev->net_dev->ifindex); WARN_ON(1); } spin_unlock(&wimax_id_table_lock); }