net: caif: Add a missing rcu_read_unlock() in caif_flow_cb
authorYueHaibing <yuehaibing@huawei.com>
Thu, 19 Jul 2018 02:27:13 +0000 (10:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:27 +0000 (09:26 +0200)
commitb970d8a1c213d8f030feddb3cbf934df4302eb47
tree7cbb8dabdd6f69ad174d44cddee0a464714b1135
parenta10170d94ed4954f62e2cf73ce7cf5c531790163
net: caif: Add a missing rcu_read_unlock() in caif_flow_cb

[ Upstream commit 64119e05f7b31e83e2555f6782e6cdc8f81c63f4 ]

Add a missing rcu_read_unlock in the error path

Fixes: c95567c80352 ("caif: added check for potential null return")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/caif/caif_dev.c