mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[SCTP]: Audit return code of create_proc_*
From: Christophe Lucas <[email protected]> Audit return of create_proc_* functions. Signed-off-by: Christophe Lucas <[email protected]> Signed-off-by: Domen Puncer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e2bf521d97
commit
ee71a29eb5
1 changed files with 5 additions and 1 deletions
|
|
@ -127,8 +127,12 @@ done:
|
|||
/* Initialize the objcount in the proc filesystem. */
|
||||
void sctp_dbg_objcnt_init(void)
|
||||
{
|
||||
create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
|
||||
struct proc_dir_entry *ent;
|
||||
ent = create_proc_read_entry("sctp_dbg_objcnt", 0, proc_net_sctp,
|
||||
sctp_dbg_objcnt_read, NULL);
|
||||
if (!ent)
|
||||
printk(KERN_WARNING
|
||||
"sctp_dbg_objcnt: Unable to create /proc entry.\n");
|
||||
}
|
||||
|
||||
/* Cleanup the objcount entry in the proc filesystem. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue