Add --enable-driver-resource-verifying option
verify that ecdev pointer in native drivers is dereferenced after it has been initialized by ecdev_offer().
This commit is contained in:
parent
e4f7122548
commit
dd7fc5b8eb
31
configure.ac
31
configure.ac
|
|
@ -163,6 +163,37 @@ AC_SUBST(INSTALL_MOD_DIR,[$moddir])
|
||||||
AC_MSG_CHECKING([for Linux modules installation directory])
|
AC_MSG_CHECKING([for Linux modules installation directory])
|
||||||
AC_MSG_RESULT([$INSTALL_MOD_DIR])
|
AC_MSG_RESULT([$INSTALL_MOD_DIR])
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# Native driver resource (de)allocation verifying
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to verify native driver resources])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([driver-resource-verifying],
|
||||||
|
AS_HELP_STRING([--enable-driver-resource-verifying],
|
||||||
|
[Verify resource (de-)allocation in native drivers]),
|
||||||
|
[
|
||||||
|
case "${enableval}" in
|
||||||
|
yes) enableverifying=1
|
||||||
|
;;
|
||||||
|
no) enableverifying=0
|
||||||
|
;;
|
||||||
|
*) AC_MSG_ERROR([Invalid value for --enable-driver-resource-verifying])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[enableverifying=0]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "x$enableverifying" = "x1"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(ENABLE_DRIVER_RESOURCE_VERIFYING, test "x$enableverifying" = "x1")
|
||||||
|
AC_SUBST(ENABLE_DRIVER_RESOURCE_VERIFYING,[$enableverifying])
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Generic Ethernet driver
|
# Generic Ethernet driver
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue