public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/5] kernel/debug/kdb/kdb_bp.c: drop negativity check on unsigned value
@ 2014-07-18 15:34 Andrey Utkin
  2014-07-18 17:18 ` walter harms
  2014-07-22  7:47 ` Dan Carpenter
  0 siblings, 2 replies; 4+ messages in thread
From: Andrey Utkin @ 2014-07-18 15:34 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors, kgdb-bugreport
  Cc: dcb314, jason.wessel, Andrey Utkin

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80591
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
---
 kernel/debug/kdb/kdb_bp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/debug/kdb/kdb_bp.c b/kernel/debug/kdb/kdb_bp.c
index 70a5046..f27dfb8 100644
--- a/kernel/debug/kdb/kdb_bp.c
+++ b/kernel/debug/kdb/kdb_bp.c
@@ -39,7 +39,7 @@ static char *kdb_rwtypes[] = {
 
 static char *kdb_bptype(kdb_bp_t *bp)
 {
-	if (bp->bp_type < 0 || bp->bp_type > 4)
+	if (bp->bp_type > 4)
 		return "";
 
 	return kdb_rwtypes[bp->bp_type];
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-22  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 15:34 [PATCH 4/5] kernel/debug/kdb/kdb_bp.c: drop negativity check on unsigned value Andrey Utkin
2014-07-18 17:18 ` walter harms
2014-07-18 17:41   ` Andrey Utkin
2014-07-22  7:47 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox