]> git.baikalelectronics.ru Git - kernel.git/commit
prism54: off by one BUG_ON() test
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Dec 2015 13:19:49 +0000 (16:19 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 11 Dec 2015 11:22:57 +0000 (13:22 +0200)
commit19c3e15bf0961d2a69a796291d9e6729261ace12
treee0da0eecaec12d056fc204bd7b34b26f62138230
parentcc80fa637d6246c0b611342c988fa417ab6eb55a
prism54: off by one BUG_ON() test

This code was supposed to trigger a BUG() if we truncate the output but
it's off by one so it allows one character to be truncated.  Really
drivers shouldn't call BUG_ON() and especially for something minor like
this so I've changed it to a WARN_ON().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/prism54/isl_ioctl.c