pps: fix incorrect verdict check
authorJoonwoo Park <joonwpark81@gmail.com>
Wed, 26 Aug 2009 21:29:18 +0000 (14:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Aug 2009 03:06:52 +0000 (20:06 -0700)
commit054b2b13ccba4876a1ce98a7ede7dab7d6893d01
tree0421da355e30375d251e0fdb570fce2518e7a201
parentf415c413f458837bd0c27086b79aca889f9435e4
pps: fix incorrect verdict check

Fix incorrect verdict check and returns error if device_create failed,
otherwise driver triggers kernel oops.

Signed-off-by: Joonwoo Park<joonwpark81@gmail.com>
Cc: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pps/pps.c