Loading drivers/char/diag/diag_usb.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -105,7 +105,7 @@ static void usb_connect(struct diag_usb_info *ch) int num_write = 0; int num_read = 1; /* Only one read buffer for any USB channel */ if (!ch) if (!ch || !ch->connected) return; num_write = diag_mempools[ch->mempool].poolsize; Loading Loading
drivers/char/diag/diag_usb.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -105,7 +105,7 @@ static void usb_connect(struct diag_usb_info *ch) int num_write = 0; int num_read = 1; /* Only one read buffer for any USB channel */ if (!ch) if (!ch || !ch->connected) return; num_write = diag_mempools[ch->mempool].poolsize; Loading