drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
[sfrench/cifs-2.6.git] / scripts / tags.sh
index f470d9919ed7cef58d142b7407dad3af1083cd2b..70e14c67bde73b1e5e5856ebef812a5e4ba9ab4b 100755 (executable)
@@ -19,7 +19,7 @@ ignore="$ignore ( -name *.mod.c ) -prune -o"
 # Do not use full path if we do not use O=.. builds
 # Use make O=. {tags|cscope}
 # to force full paths for a non-O= build
-if [ "${KBUILD_SRC}" = "" ]; then
+if [ "${srctree}" = "." -o -z "${srctree}" ]; then
        tree=
 else
        tree=${srctree}/