fcoe: make sure fcoe frames are unshared prior to manipulating them
authorNeil Horman <nhorman@tuxdriver.com>
Sat, 3 Aug 2013 10:45:54 +0000 (10:45 +0000)
committerRobert Love <robert.w.love@intel.com>
Wed, 4 Sep 2013 19:33:08 +0000 (12:33 -0700)
commit8b6124345207e4c2141bed78f1bf7c4f526a6d19
tree797433c07bf58a5e5c37eb4b07aada7253f28c96
parentc0866286f10964e61ec10c8c605ef86e65fbbd38
fcoe: make sure fcoe frames are unshared prior to manipulating them

Based on my last patch I noticed that fcoe_rcv has a simmilar problem, in that
it manipulates the passed in skb without checking to see if it has other users.
Making manipulations to a shared skb can result in various corruptions.

Easy fix, just make sure the skb is unshared prior to doing anything with it.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/fcoe/fcoe.c