Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137592057
D30373.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D30373.diff
View Options
diff --git a/sys/dev/axgbe/xgbe-sysctl.c b/sys/dev/axgbe/xgbe-sysctl.c
--- a/sys/dev/axgbe/xgbe-sysctl.c
+++ b/sys/dev/axgbe/xgbe-sysctl.c
@@ -515,7 +515,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -551,7 +551,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -583,7 +583,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -639,7 +639,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
sys_op->rx_coalesce_usecs = pdata->rx_usecs;
@@ -770,7 +770,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
sys_op->autoneg = pdata->phy.pause_autoneg;
@@ -868,7 +868,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
sys_op->autoneg = pdata->phy.autoneg;
@@ -993,7 +993,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
sys_op->rx_max_pending = XGBE_RX_DESC_CNT_MAX;
@@ -1096,7 +1096,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count);
@@ -1174,7 +1174,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1220,7 +1220,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1256,7 +1256,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1293,7 +1293,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1330,7 +1330,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1368,7 +1368,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1405,7 +1405,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1441,7 +1441,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1478,7 +1478,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1514,7 +1514,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
@@ -1555,7 +1555,7 @@
if (req->newptr == NULL) {
sb = sbuf_new_for_sysctl(NULL, NULL, buf_size, req);
if (sb == NULL) {
- rc = sb->s_error;
+ rc = ENOMEM;
return (rc);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 25, 12:13 PM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26113035
Default Alt Text
D30373.diff (3 KB)
Attached To
Mode
D30373: axgbe: Don't dereference NULL pointers
Attached
Detach File
Event Timeline
Log In to Comment