cs89x0.c MODULE_PARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



drivers/net/cs89x0.c in 2.4.0-test10 has these lines.

static char media[8];
MODULE_PARM(media, "s");

The MODULE_PARM type does not match the variable declaration.  It
should either be

static char media[8];
MODULE_PARM(media, "c8");

or

static char *media;
MODULE_PARM(media, "s");

Since the code reads media without checking for NULL pointers, the
first form would be better.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux