aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorXiongfeng Wang <[email protected]>2020-11-19 20:49:18 +0800
committerGreg Kroah-Hartman <[email protected]>2020-12-09 19:43:44 +0100
commit1749c90489f2afa6b59dbf3ab59d58a9014c84a1 (patch)
treefa85157fbd079957627b3d26c2aa834f5d33c85a /lib/mpi/mpi-add.c
parent505b08777d78868e6c47051a4e7f011718a3aba1 (diff)
misc: pci_endpoint_test: fix return value of error branch
We return 'err' in the error branch, but this variable may be set as zero before. Fix it by setting 'err' as a negative value before we goto the error label. Fixes: e03327122e2c ("pci_endpoint_test: Add 2 ioctl commands") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Xiongfeng Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions