511a4c74b8
The "dev->intr_handle.fd" is possibly a negative value while it is passed as an argument to function "close". Fix the check to the fd. Fixes: 5a60a7ffc801 ("pci: introduce functions to alloc and free uio resource") Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>