From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B907C433F5 for ; Tue, 9 Nov 2021 17:56:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F3E9610E9 for ; Tue, 9 Nov 2021 17:56:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241467AbhKIR6t (ORCPT ); Tue, 9 Nov 2021 12:58:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:51006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241457AbhKIR6p (ORCPT ); Tue, 9 Nov 2021 12:58:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BEDF3610A0; Tue, 9 Nov 2021 17:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636480559; bh=Slrt1Be8BwzXjB1clZSescouhmhXLHLusvWpHUZB5xY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yhQdydmz7v7JFpX2PMcoPgaAsOUikTtx5i3UtexEc5CsmNp91W5A2CTX/kIZ6GiI/ S9t+ILKeCbgM8BGkxM+IQeD7evpR1lUMOXKH8C45yF5O8ALFGwYtu9/SEYsBKXZv17 oCjWtBhRotJ7GOER7SXhWAJ3ly5F6vWtBqP9HXvg= Date: Tue, 9 Nov 2021 18:55:56 +0100 From: Greg KH To: Vihas Mak Cc: sudipm.mukherjee@gmail.com, arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] char: ppdev: fixed a validation issue Message-ID: References: <20211108185818.GA73382@makvihas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 11:21:39PM +0530, Vihas Mak wrote: > > And you didn't answer my question above, what happens if the mode is not > > set properly today? > > It'll throw a ENOSYS if the mode is not set properly and print the following: > > pr_debug("%s: Unknown mode 0x%02x\n", > port->name, port->ieee1284.mode); Ah, good, so then your change is not needed at all, so why add it? thanks, greg k-h