]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
Fix checking of socket type
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Dec 2012 16:58:30 +0000 (17:58 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Dec 2012 16:58:30 +0000 (17:58 +0100)
net/can/canethgw.c

index 5ef2433ac7866964ae22cacb676923ec13652326..6bd36e624adcce116bbfebb1abbb661718ba7869 100644 (file)
@@ -313,7 +313,7 @@ static long cegw_ioctl_start(struct file *file, unsigned long arg)
        }
 
        if (job->can_sock->ops->family != AF_CAN ||
-           job->can_sock->type != CAN_RAW) {
+           job->can_sock->type != SOCK_RAW) {
                kfree(job);
                return -EBADF;
        }