]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - scripts/coccicheck
tuntap: fix use after free during release
[mirror_ubuntu-bionic-kernel.git] / scripts / coccicheck
index ecfac64b39fe0c403d90e8700f92ca3aff400ead..413eb8a59bc5aeabd12a35f66363212cb0461ab4 100755 (executable)
@@ -128,9 +128,10 @@ run_cmd_parmap() {
        fi
        echo $@ >>$DEBUG_FILE
        $@ 2>>$DEBUG_FILE
-       if [[ $? -ne 0 ]]; then
+       err=$?
+       if [[ $err -ne 0 ]]; then
                echo "coccicheck failed"
-               exit $?
+               exit $err
        fi
 }