]> sourceware.org Git - lvm2.git/commit
bcache: fix incorrect pointer check
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Mar 2021 18:35:53 +0000 (19:35 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Mar 2021 23:59:05 +0000 (00:59 +0100)
commit17802084c90df4ced26ae395292f0fc8466e72b7
tree0846157074b582ec3964149aeccd36d980884106
parentd5f3239de4aa33f51cc8db7fc2e29db41cab9152
bcache: fix incorrect pointer check

With commit b44db5d1a7ecc2e8e3cef0852c4397b64ddf0a09
needs to check allocated pointer for failed malloc().

Existing check was actually no checking anything so failing
malloc here would result in segfault (although with very
low chance to ever happen).
lib/device/bcache.c
This page took 0.045118 seconds and 5 git commands to generate.