commit | 69555af2ce32a31d11666e5fe20628b35fdf7ef3 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Wed Jul 06 12:02:09 2016 +0000 |
committer | Jens Axboe <axboe@fb.com> | Tue Jul 12 08:33:43 2016 -0700 |
tree | bf8f78689a6ab8ec0c4c064a2ebbcc65bccb1a89 | |
parent | e76debd996c6c0296fbdcba275b4f875e07a0eff [diff] |
nvmet: fix return value check in nvmet_subsys_alloc() In case of error, the function kstrndup() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>