summaryrefslogtreecommitdiff
path: root/scripts/semver
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-06-27 00:07:54 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-07-31 15:56:38 +0300
commit29994a50817d67c289277ef296215cbbffb7c19d (patch)
treeb3518e850617dee3475871bc0976c20c9fcde4b1 /scripts/semver
parent3ec5aa6720c32d32cd26cf52c0e35bf61830c879 (diff)
lib: configfs: Fix asprintf return value usage
The asprintf function returns -1, and leaves the first parameter undefined in case of an allocation error. This conflicts with the code's assumption that the parameter is set NULL on error. Check all return values of asprintf, and ensure that the string parameter is not used as a return value on error paths. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/semver')
0 files changed, 0 insertions, 0 deletions