Thread (15 messages) 15 messages, 5 authors, 2021-03-30

Re: [PATCH v3 7/7] qla2xxx: Check kzalloc() return value

From: Daniel Wagner <hidden>
Date: 2021-03-21 12:11:05

On Sat, Mar 20, 2021 at 04:23:59PM -0700, Bart Van Assche wrote:
 	data = kzalloc(response_len, GFP_KERNEL);
+	if (!data) {
+		kfree(req_data);
+		return -ENOMEM;
+	}
There is the host_stat_out label which could be reused for the exit
path. I am not sure if this the preferred solution by the
maintainers.

Reviewed-by: Daniel Wagner <redacted>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help