mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 00:32:38 +00:00
isdn/capi: correct capi20_manufacturer argument type mismatch
Function capi20_manufacturer() is declared with unsigned int cmd argument but called with unsigned long. Fix by correcting the function prototype since the actual argument is part of the user visible API. Spotted with Coverity. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8324f9420
commit
9ea8aa8d50
@ -1184,7 +1184,7 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data)
|
||||
* Return value: CAPI result code
|
||||
*/
|
||||
|
||||
int capi20_manufacturer(unsigned int cmd, void __user *data)
|
||||
int capi20_manufacturer(unsigned long cmd, void __user *data)
|
||||
{
|
||||
struct capi_ctr *ctr;
|
||||
int retval;
|
||||
@ -1259,7 +1259,7 @@ int capi20_manufacturer(unsigned int cmd, void __user *data)
|
||||
}
|
||||
|
||||
default:
|
||||
printk(KERN_ERR "kcapi: manufacturer command %d unknown.\n",
|
||||
printk(KERN_ERR "kcapi: manufacturer command %lu unknown.\n",
|
||||
cmd);
|
||||
break;
|
||||
|
||||
|
@ -41,7 +41,7 @@ u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]);
|
||||
u16 capi20_get_version(u32 contr, struct capi_version *verp);
|
||||
u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]);
|
||||
u16 capi20_get_profile(u32 contr, struct capi_profile *profp);
|
||||
int capi20_manufacturer(unsigned int cmd, void __user *data);
|
||||
int capi20_manufacturer(unsigned long cmd, void __user *data);
|
||||
|
||||
#define CAPICTR_UP 0
|
||||
#define CAPICTR_DOWN 1
|
||||
|
Loading…
Reference in New Issue
Block a user