summaryrefslogtreecommitdiff
path: root/xpp/xproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xproto.h')
-rw-r--r--xpp/xproto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/xproto.h b/xpp/xproto.h
index 2eb6d18..93ce3a8 100644
--- a/xpp/xproto.h
+++ b/xpp/xproto.h
@@ -127,6 +127,8 @@ void xpd_set_addr(struct xpd_addr *addr, int xpd_num);
do { \
int len = RPACKET_SIZE(card,op); \
\
+ if(!xbus->hardware_exists) \
+ return -ENODEV; \
frm = xbus->ops->xframe_new(xbus, GFP_ATOMIC); \
if(!frm) \
return -ENOMEM; \