[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 78765ed280631126abdabca42035eff8fe95dcc5..7331e8450d1a7d96caa64b2ba88e3d13be622b6f 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)