aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-09-10 17:43:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 18:51:15 -0400
commit1b8129479a0e8db491fc3a7bcca3be7623f54a78 (patch)
tree32937baaba05bc5caefd6d46275fec06e6dedf44 /drivers/misc
parent9c8dc10f487dde5b114a53c73a36b3bc4459e213 (diff)
mei: add error messages for open count errors
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index ae2cd0d52907..e8b0858132c1 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -239,12 +239,18 @@ static int mei_open(struct inode *inode, struct file *file)
239 goto out_unlock; 239 goto out_unlock;
240 } 240 }
241 err = -EMFILE; 241 err = -EMFILE;
242 if (dev->open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) 242 if (dev->open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) {
243 dev_err(&dev->pdev->dev, "open_handle_count exceded %d",
244 MEI_MAX_OPEN_HANDLE_COUNT);
243 goto out_unlock; 245 goto out_unlock;
246 }
244 247
245 cl_id = find_first_zero_bit(dev->host_clients_map, MEI_CLIENTS_MAX); 248 cl_id = find_first_zero_bit(dev->host_clients_map, MEI_CLIENTS_MAX);
246 if (cl_id >= MEI_CLIENTS_MAX) 249 if (cl_id >= MEI_CLIENTS_MAX) {
250 dev_err(&dev->pdev->dev, "client_id exceded %d",
251 MEI_CLIENTS_MAX) ;
247 goto out_unlock; 252 goto out_unlock;
253 }
248 254
249 cl->host_client_id = cl_id; 255 cl->host_client_id = cl_id;
250 256