diff options
Diffstat (limited to 'tools/libxc/xc_flask.c')
-rw-r--r-- | tools/libxc/xc_flask.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_flask.c b/tools/libxc/xc_flask.c index 27794a82d5..78c243c9e0 100644 --- a/tools/libxc/xc_flask.c +++ b/tools/libxc/xc_flask.c @@ -284,6 +284,8 @@ int xc_flask_access(xc_interface *xc_handle, const char *scon, const char *tcon, MAX_SHORT_DEC_LEN + 1 + sizeof(req)*2 + 1; buf = malloc(bufLen); + if ( buf == NULL ) + return -ENOMEM; snprintf(buf, bufLen, "%s %s %hu %x", scon, tcon, tclass, req); op.cmd = FLASK_ACCESS; |