Commit f99737c
xfrm: Oops on error in pfkey_msg2xfrm_state()
commit 1e3d0c2c70cd3edb5deed186c5f5c75f2b84a633 upstream.
There are some missing error codes here so we accidentally return NULL
instead of an error pointer. It results in a NULL pointer dereference.
Fixes: df71837 ("[LSM-IPSec]: Security association restriction.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ac78351 commit f99737c
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
| 1150 | + | |
| 1151 | + | |
1151 | 1152 | | |
| 1153 | + | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
| |||
1167 | 1169 | | |
1168 | 1170 | | |
1169 | 1171 | | |
1170 | | - | |
| 1172 | + | |
| 1173 | + | |
1171 | 1174 | | |
| 1175 | + | |
1172 | 1176 | | |
1173 | 1177 | | |
1174 | 1178 | | |
| |||
1182 | 1186 | | |
1183 | 1187 | | |
1184 | 1188 | | |
1185 | | - | |
| 1189 | + | |
| 1190 | + | |
1186 | 1191 | | |
| 1192 | + | |
1187 | 1193 | | |
1188 | 1194 | | |
1189 | 1195 | | |
| |||
1228 | 1234 | | |
1229 | 1235 | | |
1230 | 1236 | | |
1231 | | - | |
| 1237 | + | |
| 1238 | + | |
1232 | 1239 | | |
| 1240 | + | |
1233 | 1241 | | |
1234 | 1242 | | |
1235 | 1243 | | |
| |||
0 commit comments