datapath: add skb_clone NULL check in the recirc action.
authorAndy Zhou <azhou@nicira.com>
Thu, 10 Jul 2014 07:30:27 +0000 (00:30 -0700)
committerAndy Zhou <azhou@nicira.com>
Thu, 10 Jul 2014 22:00:17 +0000 (15:00 -0700)
commit04fa7d0df76704cc92288c7407d1750fbe94bad6
treee86f35fcb3b42943a0bce23c12b14c1dfb91e82b
parent8e21fbb9d8dd495630350ef1831809d6249ee022
datapath: add skb_clone NULL check in the recirc action.

Refactoring recirc action implementation.

The main change is to fix a bug where the NULL check after skb clone()
call is missing.  The fix is to return -ENOMEM whenever skb_clone()
failed to create a clone.

Also rearranged adjacent code to improve readability.

Reported-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/actions.c