commit | 491e94f790982bec5a1334dd3db2708de3724bdf | [log] [tgz] |
---|---|---|
author | Bob Peterson <rpeterso@redhat.com> | Thu Oct 01 11:47:31 2015 -0500 |
committer | Bob Peterson <rpeterso@redhat.com> | Thu Oct 01 12:00:59 2015 -0500 |
tree | 710667725821e752d23d6bb1b829bbe6cee0b958 | |
parent | 6de20eb0dee4c802d9d228d6c08d00386e172e52 [diff] |
gfs2: Add missing else in trans_add_meta/data This patch fixes a timing window that causes a segfault. The problem is that bd can remain NULL throughout the function and then reference that NULL pointer if the bh->b_private starts out NULL, then someone sets it to non-NULL inside the locking. In that case, bd still needs to be set. Signed-off-by: Bob Peterson <rpeterso@redhat.com>