summaryrefslogtreecommitdiff
path: root/xpp/card_fxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/card_fxs.c')
-rw-r--r--xpp/card_fxs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpp/card_fxs.c b/xpp/card_fxs.c
index 859cc6c..e7a4474 100644
--- a/xpp/card_fxs.c
+++ b/xpp/card_fxs.c
@@ -613,7 +613,8 @@ static int FXS_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd, unsigned long a
BUG_ON(!priv);
xbus = xpd->xbus;
BUG_ON(!xbus);
-
+ if(!xbus->hardware_exists)
+ return -ENODEV;
if (pos < 0 || pos >= xpd->channels) {
XPD_NOTICE(xpd, "Bad channel number %d in %s(), cmd=%u\n",
pos, __FUNCTION__, cmd);