printk: fix failure to return error in devkmsg_poll()
authorNicolas Kaiser <nikai@nikai.net>
Mon, 29 Apr 2013 23:17:20 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:14 +0000 (18:28 -0700)
commit0a285317daf785424c884d1a7548705c60bc42cc
tree196895c36f8252f84bbc6b3b6d776f656267d5a0
parent1b2c289b4f9018f4bd54d22ab54aaeda9181cd2a
printk: fix failure to return error in devkmsg_poll()

Error value got overwritten instantly.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk.c