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


Groups > linux.kernel > #1221633

Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc
Date 2015-09-09 20:50 +0200
Message-ID <q6SBr-2Y3-9@gated-at.bofh.it> (permalink)
References <q6J58-6bW-3@gated-at.bofh.it> <q6J58-6bW-17@gated-at.bofh.it> <q6Q6C-7ZD-11@gated-at.bofh.it> <q6SrM-2MF-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2015-09-09 at 20:34 +0200, Rasmus Villemoes wrote:
> mc_spec and mc_other are u32*, we allocate 0x200 = 512 bytes = 128
> u32s, and pointer arithmetic makes mc_other point to the latter 64. Then
> the memory is cleared 256 bytes at a time.
> 
> It's unusual and slightly obfuscated code, but I don't think it's
> wrong. 

Right, misread.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH 3/4] net: mv643xx_eth: use kzalloc Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-09-09 10:40 +0200
  Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc Joe Perches <joe@perches.com> - 2015-09-09 18:10 +0200
    Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-09-09 20:40 +0200
      Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc Joe Perches <joe@perches.com> - 2015-09-09 20:50 +0200
        Re: [PATCH 3/4] net: mv643xx_eth: use kzalloc Joe Perches <joe@perches.com> - 2015-09-10 01:30 +0200

csiph-web