search for: outerr

Displaying 7 results from an estimated 7 matches for "outerr".

Did you mean: outer
2020 Aug 06
1
[PATCH][next] vdpa/mlx5: fix memory allocation failure checks
...vdpa/mlx5/net/mlx5_vnet.c @@ -867,7 +867,7 @@ static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inl *outlen = MLX5_ST_SZ_BYTES(qp_2rst_out); *in = kzalloc(*inlen, GFP_KERNEL); *out = kzalloc(*outlen, GFP_KERNEL); - if (!in || !out) + if (!*in || !*out) goto outerr; MLX5_SET(qp_2rst_in, *in, opcode, cmd); @@ -879,7 +879,7 @@ static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inl *outlen = MLX5_ST_SZ_BYTES(rst2init_qp_out); *in = kzalloc(*inlen, GFP_KERNEL); *out = kzalloc(MLX5_ST_SZ_BYTES(rst2init_qp_out), GFP_KERNEL);...
2020 Aug 07
1
[PATCH] vdpa/mlx5: Fix erroneous null pointer checks
...7 +867,7 @@ static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inl > *outlen = MLX5_ST_SZ_BYTES(qp_2rst_out); > *in = kzalloc(*inlen, GFP_KERNEL); > *out = kzalloc(*outlen, GFP_KERNEL); > - if (!in || !out) > + if (!*in || !*out) > goto outerr; > > MLX5_SET(qp_2rst_in, *in, opcode, cmd); > @@ -879,7 +879,7 @@ static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inl > *outlen = MLX5_ST_SZ_BYTES(rst2init_qp_out); > *in = kzalloc(*inlen, GFP_KERNEL); > *out = kzalloc(MLX5_ST_SZ_BY...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Report I/O error on stdout
...ertions(+) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 6652ccc0..01bc5234 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -952,6 +952,8 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags) else status = (*cmd->builtin)(argc, argv); flushall(); + if (outerr(out1)) + warnx("%s: I/O error", commandname); status |= outerr(out1); exitstatus = status; cmddone:
2020 Mar 28
0
[klibc:update-dash] dash: eval: Use sh_warnx instead of warnx
...+), 1 deletion(-) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 4981f156..5074aa94 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -953,7 +953,7 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags) status = (*cmd->builtin)(argc, argv); flushall(); if (outerr(out1)) - warnx("%s: I/O error", commandname); + sh_warnx("%s: I/O error", commandname); status |= outerr(out1); exitstatus = status; cmddone:
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...t; + void *pp; > + > + switch (cmd) { > + case MLX5_CMD_OP_2RST_QP: > + *inlen = MLX5_ST_SZ_BYTES(qp_2rst_in); > + *outlen = MLX5_ST_SZ_BYTES(qp_2rst_out); > + *in = kzalloc(*inlen, GFP_KERNEL); > + *out = kzalloc(*outlen, GFP_KERNEL); > + if (!in || !out) > + goto outerr; > + > + MLX5_SET(qp_2rst_in, *in, opcode, cmd); > + MLX5_SET(qp_2rst_in, *in, uid, ndev->mvdev.res.uid); > + MLX5_SET(qp_2rst_in, *in, qpn, qpn); > + break; > + case MLX5_CMD_OP_RST2INIT_QP: > + *inlen = MLX5_ST_SZ_BYTES(rst2init_qp_in); > + *outlen = MLX5_ST_SZ_BY...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf
..._list); #endif @@ -115,6 +117,7 @@ static inline void outc(int ch, struct output *file) #endif #define out1c(c) outc((c), out1) #define out2c(c) outcslow((c), out2) +#define out1mem(s, l) outmem((s), (l), out1) #define out1str(s) outstr((s), out1) #define out2str(s) outstr((s), out2) #define outerr(f) (f)->flags
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
..._list); #endif @@ -115,6 +117,7 @@ static inline void outc(int ch, struct output *file) #endif #define out1c(c) outc((c), out1) #define out2c(c) outcslow((c), out2) +#define out1mem(s, l) outmem((s), (l), out1) #define out1str(s) outstr((s), out1) #define out2str(s) outstr((s), out2) #define outerr(f) (f)->flags