net: ipv6: fix wrong ping_v6_sendmsg return value daily-2014.04.07.1_rel-roth-r4-partner
authorLorenzo Colitti <lorenzo@google.com>
Wed, 3 Jul 2013 15:12:40 +0000 (00:12 +0900)
committerManish Tuteja <mtuteja@nvidia.com>
Tue, 1 Apr 2014 10:12:57 +0000 (03:12 -0700)
commitd4473956b592be08849f64120d00dd0cf42c1c1e
tree64e52aa83edd8138bcaed9c387075c47ad6fb620
parentb4fe053967bc207fc696b93b47b951c51ab956b5
net: ipv6: fix wrong ping_v6_sendmsg return value

ping_v6_sendmsg currently returns 0 on success. It should return
the number of bytes written instead.

Bug: 9469865
Bug 1412141

Change-Id: I14aad6018f0c3fd92dad315bc3ade04c0b3982e0
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5f0fd6105f491b8b435863e98f7e96d617e3da84)
Reviewed-on: http://git-master/r/336272
(cherry picked from commit 6d931659abae7575ee64b16e3c2f3ee8bd350dd1)
Reviewed-on: http://git-master/r/351010
(cherry picked from commit 48c98b69c93e9b16cbdf5fdab18eaab07503ff8a)
Reviewed-on: http://git-master/r/390637
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
net/ipv6/ping.c