Tag: 37bb7899ca366dc212b71b150e78566d04808cc0

target: fix return code in target_core_init_configfs error path

Author: Peter Senna Tschudin <peter.senna@gmail.com> This patch fixes error cases within target_core_init_configfs() to properly set ret = -ENOMEM before jumping to the out_global exception path. This was originally discovered with the following Coccinelle semantic match information: Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version …

Continue reading