aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/isdn/capi/kcapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c
index 9f73bc2727c2..f55531869313 100644
--- a/drivers/isdn/capi/kcapi.c
+++ b/drivers/isdn/capi/kcapi.c
@@ -821,6 +821,8 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data)
821 return -EFAULT; 821 return -EFAULT;
822 } 822 }
823 card = get_capi_ctr_by_nr(ldef.contr); 823 card = get_capi_ctr_by_nr(ldef.contr);
824 if (!card)
825 return -EINVAL;
824 card = capi_ctr_get(card); 826 card = capi_ctr_get(card);
825 if (!card) 827 if (!card)
826 return -ESRCH; 828 return -ESRCH;