]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: make sure backing_dev_info is zeroed
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 22 Nov 2011 02:27:06 +0000 (21:27 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 22 Nov 2011 04:35:52 +0000 (20:35 -0800)
commit032736bc052d3fb1a1d4f033a47e844d7f4ea05a
tree479199d6a22e32f8e688e2f139d572b49a1ab0d3
parent364fad6fa5bcaaac938f31eb67b1e1d0190cba7e
Linux: make sure backing_dev_info is zeroed

The afs backing_dev_info structure is allocated dynamically
without zeroing out the contents.  In particular there's no
guarantee that congested_fn is NULL, causing spurious oopses
when bdi_congested in the kernel tries to call it.

(adapted from commit 8e97cf6f215d5575c63d86eaec59031399f4beda)

Change-Id: I83755b6bb5ec2fada7e077c00d3d8edf8af1cae4
Reviewed-on: http://gerrit.openafs.org/6104
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/LINUX/osi_vfsops.c