mirror of
https://github.com/intrepidcs/intrepid-socketcan-kernel-module.git
synced 2026-09-20 16:08:38 +02:00
Fix usermode daemon version check
This commit is contained in:
+1
-7
@@ -976,13 +976,7 @@ static long intrepid_dev_ioctl(struct file *fp, unsigned int cmd, unsigned long
|
|||||||
ret = KO_VERSION_INT;
|
ret = KO_VERSION_INT;
|
||||||
break;
|
break;
|
||||||
case SIOCGCLIENTVEROK:
|
case SIOCGCLIENTVEROK:
|
||||||
/* Here we can do checks to see if the usermode daemon is
|
if (VER_MAJ_FROM_INT(arg) == 3 && VER_MIN_FROM_INT(arg) == 0 && VER_PATCH_FROM_INT(arg) >= 0)
|
||||||
* a compatible version with us. We don't enforce anything
|
|
||||||
* on the kernel side. icsscand v2.0.0 will not work with
|
|
||||||
* older kernels, and would display an obscure error, thus
|
|
||||||
* we want to ask the user to update to v2.0.1 or later
|
|
||||||
*/
|
|
||||||
if (VER_MAJ_FROM_INT(arg) == 3 && (VER_MIN_FROM_INT(arg) > 0 || VER_PATCH_FROM_INT(arg) >= 1))
|
|
||||||
ret = 0; /* ok to start */
|
ret = 0; /* ok to start */
|
||||||
else
|
else
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user