Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1659042

Re: [PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper

From Sagi Grimberg <sagi@grimberg.me>
Newsgroups linux.kernel
Subject Re: [PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper
Date 2017-06-06 20:30 +0200
Message-ID <tProS-3Yv-23@gated-at.bofh.it> (permalink)
References <tPnOh-1Aw-3@gated-at.bofh.it> <tPnOh-1Aw-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> +	while ((offset < buflen) && sg_miter_next(&miter)) {
> +		unsigned int len;
> +
> +		len = min(miter.length, buflen - offset);
> +		memset(miter.addr, '\0', len);

Why '\0' and not 0?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper Johannes Thumshirn <jthumshirn@suse.de> - 2017-06-06 16:40 +0200
  Re: [PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper Sagi Grimberg <sagi@grimberg.me> - 2017-06-06 20:30 +0200
    Re: [PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper Johannes Thumshirn <jthumshirn@suse.de> - 2017-06-07 09:10 +0200

csiph-web