From owner-cvs-all@FreeBSD.ORG Mon Jun 2 17:09:03 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E474A37B401; Mon, 2 Jun 2003 17:09:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 950CD43F75; Mon, 2 Jun 2003 17:09:02 -0700 (PDT) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h530920U011103; Mon, 2 Jun 2003 17:09:02 -0700 (PDT) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h53092UJ011102; Mon, 2 Jun 2003 17:09:02 -0700 (PDT) Message-Id: <200306030009.h53092UJ011102@repoman.freebsd.org> From: Sam Leffler Date: Mon, 2 Jun 2003 17:09:02 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/opencrypto crypto.c cryptodev.c cryptodev.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 00:09:04 -0000 sam 2003/06/02 17:09:02 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) sys/opencrypto crypto.c cryptodev.c cryptodev.h Log: o add a ``done'' flag for crypto operations; this is set when the operation completes and is intended for callers to check operations that may complete ``prematurely'' because of direct callbacks o correct crypto_dispatch's handling of operations where the driver returns ERESTART: the return value must be zero and not ERESTART, otherwise the caller may free the crypto request prematurely (fixes panic for ops submitted through /dev/crypto) Revision Changes Path 1.4.2.7 +4 -0 src/sys/opencrypto/crypto.c 1.4.2.4 +1 -1 src/sys/opencrypto/cryptodev.c 1.2.2.5 +1 -0 src/sys/opencrypto/cryptodev.h