diff options
author | Bandan Das <bsd@redhat.com> | 2018-05-03 15:20:27 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-05-07 11:10:25 +0200 |
commit | 24e8d1faea1e4a2dc59841e048390645d7804cb5 (patch) | |
tree | 30e5608632325af87d9dd3ac2d3eb288a3434f7f /bt-host.c | |
parent | c8b7e627b4269a3bc3ae41d9f420547a47e6d9b9 (diff) |
usb-mtp: Add some NULL checks for issues pointed out by coverity
CID 1390578: In usb_mtp_write_metadata, parent can never be NULL but
just in case, add an assert
CID 1390592: Check for o->format only if o !=NULL
CID 1390604: Check s->data_out != NULL in usb_mtp_handle_data
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20180503192028.14353-2-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'bt-host.c')
0 files changed, 0 insertions, 0 deletions