projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] drivers/isdn/gigaset: reduce kernel message spam
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
isdn
/
gigaset
/
isocdata.c
diff --git
a/drivers/isdn/gigaset/isocdata.c
b/drivers/isdn/gigaset/isocdata.c
index df988eb0e36fdd2bf6da36bba74cafd93f3cf6c8..8c0eb522dab14336d8c7140660146375bff03ad0 100644
(file)
--- a/
drivers/isdn/gigaset/isocdata.c
+++ b/
drivers/isdn/gigaset/isocdata.c
@@
-921,6
+921,8
@@
static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf)
/* end of line */
gig_dbg(DEBUG_TRANSCMD, "%s: End of Command (%d Bytes)",
__func__, cbytes);
/* end of line */
gig_dbg(DEBUG_TRANSCMD, "%s: End of Command (%d Bytes)",
__func__, cbytes);
+ if (cbytes >= MAX_RESP_SIZE - 1)
+ dev_warn(cs->dev, "response too large\n");
cs->cbytes = cbytes;
gigaset_handle_modem_response(cs);
cbytes = 0;
cs->cbytes = cbytes;
gigaset_handle_modem_response(cs);
cbytes = 0;
@@
-929,8
+931,6
@@
static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf)
/* advance in line buffer, checking for overflow */
if (cbytes < MAX_RESP_SIZE - 1)
cbytes++;
/* advance in line buffer, checking for overflow */
if (cbytes < MAX_RESP_SIZE - 1)
cbytes++;
- else
- dev_warn(cs->dev, "response too large\n");
}
}
}
}