From: Jarno Rajahalme Date: Mon, 5 May 2014 21:17:28 +0000 (-0700) Subject: openvswitch: Fix ovs_flow_stats_get/clear RCU dereference. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~153^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ec8dbae27e5fa2b5d54f10f77286d9ef55732a;p=pandora-kernel.git openvswitch: Fix ovs_flow_stats_get/clear RCU dereference. For ovs_flow_stats_get() using ovsl_dereference() was wrong, since flow dumps call this with RCU read lock. ovs_flow_stats_clear() is always called with ovs_mutex, so can use ovsl_dereference(). Also, make the ovs_flow_stats_get() 'flow' argument const to make later patches cleaner. Signed-off-by: Jarno Rajahalme Signed-off-by: Pravin B Shelar --- Reading git-diff-tree failed