]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dac960: fix undefined behavior on empty string
authorMichael Buesch <mb@bu3sch.de>
Tue, 22 Sep 2009 23:43:36 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:28 +0000 (07:39 -0700)
commite898893399335514b10dfbd75598f8308976abe4
treeaf829247f12aed6e9371dcee8ed119ce54a3e0c3
parentc02e3f361c75da04ca3025b4d19e947e9cc62ed3
dac960: fix undefined behavior on empty string

Fix undefined behavior due to a buffer underrun if an empty string is
written to the proc file.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/DAC960.c