mac80211: Prepare mesh_table_grow to failing copy_node callback.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 7 May 2008 15:47:01 +0000 (19:47 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 May 2008 01:47:42 +0000 (21:47 -0400)
commit4caf86c6928cfaca270327bc944f901c2e2a8f50
tree6f6a1ecac1a4399c6597510f4076e19b1e30f10e
parent5194ee82b4aafc35b32c96db11bdacea9bf548be
mac80211: Prepare mesh_table_grow to failing copy_node callback.

The mesh_path_node_copy() performs kmalloc() and thus - may fail
(well, it does not now, but I'm fixing this right now). Its caller -
the mesh_table_grow() - isn't prepared for such a trick yet.

This preparation is just flush the new hash and make copy_node()
return an int value.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_pathtbl.c