diff options
-rw-r--r-- | net/nfc/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index 6ceee8e181ca..c571ca9a960c 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
@@ -143,6 +143,11 @@ int nfc_start_poll(struct nfc_dev *dev, u32 im_protocols, u32 tm_protocols) | |||
143 | goto error; | 143 | goto error; |
144 | } | 144 | } |
145 | 145 | ||
146 | if (!dev->dev_up) { | ||
147 | rc = -ENODEV; | ||
148 | goto error; | ||
149 | } | ||
150 | |||
146 | if (dev->polling) { | 151 | if (dev->polling) { |
147 | rc = -EBUSY; | 152 | rc = -EBUSY; |
148 | goto error; | 153 | goto error; |