]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
use alloc_file_type() and get_file_from_fd() in netfront
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:23 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commit729d79666c2966fea458c26940fed62bf229e42d
tree79b2cd3457632a086b6ccc446096f5e4d23bb10a
parent3b221172f1ee04327388c463e94be875cc1dfde2
use alloc_file_type() and get_file_from_fd() in netfront

Allocate the 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/netfront.h
lib/sys.c
netfront.c