]> xenbits.xensource.com Git - mini-os.git/commit
use alloc_file_type() and get_file_from_fd() in tpmfront
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:21 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commit446a03c3316b2c6eb98022901b88418236922ef2
tree19a79babf44f9db2f8759abc4c2812ac23cc568f
parent75cbe52859b53fcb81fb0859ca51aec76605756e
use alloc_file_type() and get_file_from_fd() in tpmfront

Allocate a file type dynamically via alloc_file_type().

Instead of directly accessing the files[] array use get_file_from_fd().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h
include/tpmfront.h
lib/sys.c
tpmfront.c