[media] siano: bad parameter is -EINVAL and not -EFAULT
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Jul 2011 15:55:29 +0000 (12:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:36 +0000 (17:53 -0300)
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smscoreapi.c

index 78765ed..7331e84 100644 (file)
@@ -1147,7 +1147,7 @@ static int smscore_validate_client(struct smscore_device_t *coredev,
 
        if (!client) {
                sms_err("bad parameter.");
-               return -EFAULT;
+               return -EINVAL;
        }
        registered_client = smscore_find_client(coredev, data_type, id);
        if (registered_client == client)