[ovs-dev] [PATCH 2/3] gre: Check vswitch_skb_checksum_setup() return code.

Jesse Gross jesse at nicira.com
Thu Jun 17 23:43:23 UTC 2010


On Thu, Jun 17, 2010 at 4:32 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Thu, Jun 17, 2010 at 04:27:30PM -0700, Jesse Gross wrote:
> > If vswitch_skb_checksum_setup() returns an error, the checksum
> > pointers probably haven't been set correctly which could cause
> > a crash later.  We should give up immediately on error.
>
> Looks good.
>
> vswitch_skb_checksum_setup() is also called from modify_vlan_tci()
> without an error check.  I guess we should make the same change there?
>

Yes, you're right.  I added a check there too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20100617/a10277ca/attachment-0003.html>


More information about the dev mailing list