summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index e0ed410..3a4bc1a 100644
--- a/inotail.c
+++ b/inotail.c
@@ -222,7 +222,7 @@ static ssize_t tail_pipe(struct file_struct *f)
/* We will just tail everything here */
while ((rc = read(f->fd, buf, BUFFER_SIZE)) > 0) {
- if (write(STDOUT_FILENO, buf, (size_t) rc) < 0) {
+ if (write(STDOUT_FILENO, buf, (size_t) rc) <= 0) {
/* e.g. when writing to a pipe which gets closed */
fprintf(stderr, "Error: Could not write to stdout (%s)\n", strerror(errno));
return -1;
ux/net-next.git/diff/Documentation/translations?id=45c7a4908a307a023e237a64a3eadcafc4836493&id2=07d9a380680d1c0eb51ef87ff2eab5c994949e69'>diff)
mmc: dw_mmc-pltfm: fix the potential NULL pointer dereference
platform_get_resource can be returned the NULL pointer. Then regs->start should be referred to NULL Pointer. devm_ioremap_resource() checks whether res is NULL or not. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'Documentation/translations')