net: ipv4: fix schedule while atomic bug in check_lifetime()
authorJiri Pirko <jiri@resnulli.us>
Thu, 4 Apr 2013 23:39:39 +0000 (23:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 16:04:51 +0000 (12:04 -0400)
commitc988d1e8cbf722e34ee6124b8b89d47fec655b51
tree553fb6ec2f3869c34c33a8639c347041573eb2a4
parent05a324b9c50c3edbe0ce48ee3e37b210859ef1ae
net: ipv4: fix schedule while atomic bug in check_lifetime()

move might_sleep operations out of the rcu_read_lock() section.
Also fix iterating over ifa_dev->ifa_list

Introduced by: commit 5c766d642bcaf "ipv4: introduce address lifetime"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c