summaryrefslogtreecommitdiff
path: root/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2011-06-20 13:41:23 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2011-06-20 13:41:23 +0000
commitf028e0ea8c3fdd0378927544154287f44495f36c (patch)
tree54993762afa7ea4c3d2412c5b3a46d12c7501394 /src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
parent52322db54012fef99fa111cfcfeb15b32f8dd9eb (diff)
downloadVirtualBox-svn-f028e0ea8c3fdd0378927544154287f44495f36c.tar.gz
SUPLib-linux: new version number scheme starting with Linux 3.0
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@37556 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp')
-rw-r--r--src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
index c5a72c00826..18ac03dbe15 100644
--- a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
+++ b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
@@ -266,11 +266,16 @@ int suplibOsQueryVTxSupported(void)
rc = RTStrToUInt32Ex(szBuf, &pszNext, 10, &uA);
if ( RT_SUCCESS(rc)
- && *pszNext == '.')
+ && *pszNext == '.')
{
+ /*
+ * new version number scheme starting with Linux 3.0
+ */
+ if (uA >= 3)
+ return VINF_SUCCESS;
rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uB);
if ( RT_SUCCESS(rc)
- && *pszNext == '.')
+ && *pszNext == '.')
{
rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uC);
if (RT_SUCCESS(rc))