NULL input or output is a valid case and we should not attempt to write default values to NULL input or output pointers.
Signed-off-by: Cristian Stoica <cristian.sto...@nxp.com> --- zc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/zc.c b/zc.c index 29b0501..d6adcc4 100644 --- a/zc.c +++ b/zc.c @@ -176,9 +176,6 @@ int get_userbuf(struct csession *ses, return 0; } - *src_sg = NULL; /* default to no input */ - *dst_sg = NULL; /* default to ignore output */ - if (likely(src)) { rc = __get_userbuf(src, src_len, 0, ses->readonly_pages, ses->pages, ses->sg, task, mm); -- 2.4.10 _______________________________________________ Cryptodev-linux-devel mailing list Cryptodev-linux-devel@gna.org https://mail.gna.org/listinfo/cryptodev-linux-devel