]> sourceware.org Git - lvm2.git/commit
libdm: add memory barrier
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 16 Nov 2018 15:01:03 +0000 (16:01 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 16 Nov 2018 23:30:50 +0000 (00:30 +0100)
commit55a8d6c86b4c6c6c707cfcc3dd887bca0632114f
tree173b3f4ba1520960a491b38f46971d5bf7c1760d
parent43f8da76997a22be123e97b6d0f357d6ec2d0c7c
libdm: add memory barrier

Just for case ensure compiler is not able to optimize
memset() away for resources that are released.

This idea of using memory barrier is taken from openssl.

Other options would be to check for 'explicit_bzero' function.
device_mapper/ioctl/libdm-iface.c
libdm/ioctl/libdm-iface.c
This page took 0.034496 seconds and 5 git commands to generate.