net/mrvl: reset errno before library call
authorTomasz Duszynski <tdu@semihalf.com>
Thu, 2 Nov 2017 08:37:25 +0000 (09:37 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 2 Nov 2017 18:42:11 +0000 (19:42 +0100)
commit629bccc440a3c41273143edea6512cef6cd0eeb4
tree12f9ae577cb16e468b21a50446e2b6e588023c67
parentcafba10bc16905b974063ae3b5feb5f3fbba991d
net/mrvl: reset errno before library call

In case errno contains some non-zero value and call to strtoul() is
successful -2 error will be returned.

Setting errno to zero before calling strtoul() makes sure
errors will be handled correctly.

Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton")

Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
drivers/net/mrvl/mrvl_qos.c