mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
greybus: Add FIXME warnings for possible NULL dereferences
Signed-off-by: Bill Pemberton <wfp5p@worldbroken.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
4e2b07e9ab
commit
9d677cf604
2 changed files with 4 additions and 0 deletions
|
|
@ -742,6 +742,7 @@ int gb_operation_response_send(struct gb_operation *operation, int errno)
|
|||
}
|
||||
}
|
||||
|
||||
/* FIXME operation->response could still be NULL here */
|
||||
/* Fill in the response header and send it */
|
||||
operation->response->header->result = gb_operation_errno_map(errno);
|
||||
|
||||
|
|
|
|||
|
|
@ -188,6 +188,9 @@ void gb_protocol_put(struct gb_protocol *protocol)
|
|||
if (protocol)
|
||||
WARN_ON(!protocol_count);
|
||||
else
|
||||
/* FIXME a different message is needed since this one
|
||||
* will result in a NULL dereference
|
||||
*/
|
||||
pr_err("protocol id %hhu version %hhu.%hhu not found\n",
|
||||
protocol->id, major, minor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue