Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932683AbbKRRzX (ORCPT ); Wed, 18 Nov 2015 12:55:23 -0500 Received: from smtp113.iad3a.emailsrvr.com ([173.203.187.113]:34960 "EHLO smtp113.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750719AbbKRRzW (ORCPT ); Wed, 18 Nov 2015 12:55:22 -0500 X-Auth-ID: abbotti@mev.co.uk X-Sender-Id: abbotti@mev.co.uk From: Ian Abbott To: driverdev-devel@linuxdriverproject.org Cc: Greg Kroah-Hartman , Ian Abbott , H Hartley Sweeten , linux-kernel@vger.kernel.org Subject: [PATCH 0/8] staging: comedi: some comedi_write() changes Date: Wed, 18 Nov 2015 17:55:03 +0000 Message-Id: <1447869311-21955-1-git-send-email-abbotti@mev.co.uk> X-Mailer: git-send-email 2.6.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 19 Tidy up the "write" file operation handler, `comedi_write()` a bit and improve the error handling. 1) staging: comedi: rearrange comedi_write() code 2) staging: comedi: do extra checks for becoming non-busy for "write" 3) staging: comedi: make some variables unsigned in comedi_write() 4) staging: comedi: avoid bad truncation of a size_t in comedi_write() 5) staging: comedi: allow buffer wraparound in comedi_write() 6) staging: comedi: return error on "write" if no command set up 7) staging: comedi: simplify returned errors for comedi_write() 8) staging: comedi: check for more errors for zero-length write drivers/staging/comedi/comedi_fops.c | 124 ++++++++++++++++------------------- 1 file changed, 56 insertions(+), 68 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/