diff options
| author | Pan Bian <[email protected]> | 2016-12-03 18:40:25 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-01-12 11:51:24 +0100 |
| commit | 623ac1d4a52f279d9379bae61ae1eb37c5767f96 (patch) | |
| tree | 59b7d58d020565db0c543fe63c043541cfc70ff1 /tools/perf/scripts/python/bin | |
| parent | a121103c922847ba5010819a3f250f1f7fc84ab8 (diff) | |
tty: serial: sh-sci: set error code when kasprintf fails
When the call to kasprintf() returns a NULL pointer, function
sci_request_irq() frees the preallocated memory and returns 0 is
returned. Because 0 means no error, the caller of sci_request_irq()
will keep going, and the freed memory may be used or freed again. To
avoid the above issue, this patch assigns "-ENOMEM" to the return
variable ret.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188691
Signed-off-by: Pan Bian <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions