lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0801250910230.12676@fbirervta.pbzchgretzou.qr>
Date:	Fri, 25 Jan 2008 09:31:25 +0100 (CET)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Greg Kroah-Hartman <gregkh@...e.de>
cc:	linux-kernel@...r.kernel.org, Frank Seidel <fseidel@...e.de>,
	Jiri Slaby <jirislaby@...il.com>
Subject: Re: [PATCH 012/196] nozomi driver


On Jan 24 2008 23:09, Greg Kroah-Hartman wrote:
>+/*
>+ * nozomi.c  -- HSDPA driver Broadband Wireless Data Card - Globe Trotter
>+ *
>+ * Written by: Ulf Jakobsson,
>+ *             Jan �erfeldt,
                     ^

Neither in ISO-8859-1 nor UTF-8 this position contains something meaningful.
Mind to update to UTF-8?

>+/*
>+ * CHANGELOG

Changelogs go into git, not files, at least that is what was mentioned
time and again.

>+#ifdef __BIG_ENDIAN
>+/* Big endian */
>+
>+struct toggles {
>+	unsigned enabled:5;	/*
>+				 * Toggle fields are valid if enabled is 0,
>+				 * else A-channels must always be used.
>+				 */
>+	unsigned diag_dl:1;
>+	unsigned mdm_dl:1;
>+	unsigned mdm_ul:1;
>+} __attribute__ ((packed));

Probably just me, unsigned int is a good bit more explicit.
The driver may also use a combined struct with
BIG_ENDIAN_BITFIELD/LITTLE_ENDIAN_BIGFIELD (see e.g. linux/ip.h).

>+/*    Global variables */
>+static struct pci_device_id nozomi_pci_tbl[] = {
>+	{PCI_DEVICE(VENDOR1, DEVICE1)},
>+	{},
>+};

The macros are only used once, could just as well substitute them
by their real values.

>+/*
>+ * TODO:
>+ * -Optimize
>+ * -Rewrite cleaner
>+ */

>+/*
>+ * Handle donlink data, ports that are handled are modem and diagnostics
            ^

downlink

>+static DEVICE_ATTR(card_type, 0444, card_type_show, NULL);

While 0444 is probably never going to change its meaning, S_IRUGO comes 
into mind.

>+/* just to discard single character writes */
>+static void ntty_put_char(struct tty_struct *tty, unsigned char c)
>+{
>+	/* FIXME !!! */
>+	DBG2("PUT CHAR Function: %c", c);
>+}

fix it?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ