staging: unisys: Check return code properly on visor_copy_fragsinfo_from_skb
authorNeil Horman <nhorman@redhat.com>
Tue, 21 Jul 2015 13:55:36 +0000 (09:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:19:17 +0000 (21:19 -0700)
commitce657aa81005ddfbdd9c89ec9de31ff713c05ea6
tree3719c8ee3b67e4a15b126f21e863e91baf8c8cd2
parent52b1660d3b3a7fc967ba9d9b641b594fa1ac33d7
staging: unisys: Check return code properly on visor_copy_fragsinfo_from_skb

One call site for visor_copy_fragsinfo_from_skb was checking for an rc of
-1, but thhe function doesn't return that, it returns -errno.  Correct it

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c