summaryrefslogtreecommitdiff
path: root/ioexact.h
blob: c69552bf82f2aa33b2c831f94af2f7bafe444a4b (plain)
1
2
3
4
5
6
7
8
9
#ifndef IOEXACT_H
#define IOEXACT_H

#include <stdbool.h>

extern ssize_t read_exact(int fd, void *buf, size_t len, bool mayexit);
extern ssize_t write_exact(int fd, void *buf, size_t len, bool mayexit);

#endif /* IOEXACT_H */
='commit-info'> authorDan Carpenter <dan.carpenter@oracle.com>2016-04-14 12:33:37 +0300 committerMichael S. Tsirkin <mst@redhat.com>2016-04-21 16:12:36 +0300 commitd4f6e272f2600bc1295d195a52a9e8bb81656bc7 (patch) treed4925bcb341bfd3edfadede979ea3c0e26b8bffb parentc3b46c73264b03000d1e18b22f5caf63332547c9 (diff)
firmware: qemu_fw_cfg.c: potential unintialized variable
It acpi_acquire_global_lock() return AE_NOT_CONFIGURED then "glk" isn't initialized, which, if you got very unlucky, could cause a bug. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat