caif: Bugfix debugfs directory name must be unique.
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Fri, 13 May 2011 02:44:07 +0000 (02:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2011 21:45:56 +0000 (17:45 -0400)
commit33b2f5598b4ee68021364a7b795c09ad66bc0aa8
treef6516cd969e54d39ecd6ff5caf0fb15906373dce
parentc85c2951d4da1236e32f1858db418221e624aba5
caif: Bugfix debugfs directory name must be unique.

Race condition caused debugfs_create_dir() to fail due to duplicate
name. Use atomic counter to create unique directory name.

net_ratelimit() is introduced to limit debug printouts.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_socket.c