summaryrefslogtreecommitdiff
path: root/fs/nfsctl.c
diff options
context:
space:
mode:
authorRichard MUSIL <richard.musil@st.com>2008-02-06 12:37:02 +0300
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 21:41:04 +0300
commit5bd91f18be2fc0dd0384fbfca6d3cdd79a8050dd (patch)
treefe34a0db0cf9ee8194fda3c778a44d67e6c4b0a4 /fs/nfsctl.c
parenteed4a2aba7ff6d8c40d3d55b81f80352765ffcee (diff)
downloadlinux-5bd91f18be2fc0dd0384fbfca6d3cdd79a8050dd.tar.xz
tpm.c: fix crash during device removal
The clean up procedure now uses platform device "release" callback to handle memory clean up. For this purpose "release" function callback was added to struct tpm_vendor_specific, so hw device driver provider can get called when it is safe to remove all allocated resources. This is supposed to fix a bug in device removal, where device while in receive function (waiting on timeout) was prone to segfault, if the tpm_chip struct was unallocated before the timeout expired (in tpm_remove_hardware). Acked-by: Marcel Selhorst <tpm@selhorst.net> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nfsctl.c')
0 files changed, 0 insertions, 0 deletions