From: Mauro Carvalho Chehab Date: Wed, 6 Jul 2011 15:55:29 +0000 (-0300) Subject: [media] siano: bad parameter is -EINVAL and not -EFAULT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d316b5fba37621a70893af56968ed899b1179a63;p=linux-beck.git [media] siano: bad parameter is -EINVAL and not -EFAULT Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 78765ed28063..7331e8450d1a 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c @@ -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)