]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
arch: fix neon feature detection 3003/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 25 Nov 2014 09:39:21 +0000 (10:39 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 25 Nov 2014 11:44:52 +0000 (12:44 +0100)
commit0b985d2b11df9b34bbc8ebb300b2ec493d7dc5b8
treec1784ff2aa865956fd0443d1946572aa56c3906c
parentc5d272c9f24c1272a0c4314c2ee0085b2337722c
arch: fix neon feature detection

The fread function returns the number of elements read, not the number
of bytes.

Introduced by 1cef8339f7a2a503327c20c014e696c91d36281e , after giant.

Add tests for protection against similar regressions.

http://tracker.ceph.com/issues/10185 Fixes: #10185

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/arch/neon.c
src/test/test_arch.cc