]> git.baikalelectronics.ru Git - kernel.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)
commit3d378b88edb937f0dfb57da32d63bfea217548f0
treeaf829247f12aed6e9371dcee8ed119ce54a3e0c3
parent32229f5e036feeb1661f5155b107218126fcc460
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