]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c-dev: Use memdup_user
authorThomas Meyer <thomas@m3y3r.de>
Thu, 12 Jan 2012 19:32:04 +0000 (20:32 +0100)
committerJean Delvare <khali@endymion.delvare>
Thu, 12 Jan 2012 19:32:04 +0000 (20:32 +0100)
commita699ed6f1f977dcc4a49452a247cf21dc9cec3f9
tree2c42055bfc32a26af0beab5b7234583a2a763448
parent3527bd5045aacb4e4072f9cacb8eb9a433fbad39
i2c-dev: Use memdup_user

Use memdup_user rather than duplicating its implementation.
This is a little bit restricted to reduce false positives.

The semantic patch that makes this output is available
in scripts/coccinelle/api/memdup_user.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-dev.c