staging: comedi: check return code of put_user
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 5 Sep 2010 18:32:33 +0000 (22:32 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 23:59:51 +0000 (16:59 -0700)
commit81604d43ade6abd316444f99ddb633f2e5a3f3eb
tree073c519461a6bd77911969d8da60a387ff8e4c8d
parentb04462a143afde542ad9e5a1df4fcfbff6d30249
staging: comedi: check return code of put_user

Function put_user may fail. Check for it.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c