diff options
| author | Wang Sheng-Hui <[email protected]> | 2013-08-22 01:49:42 +0000 |
|---|---|---|
| committer | Chris Metcalf <[email protected]> | 2013-09-03 18:53:34 +0000 |
| commit | 6d715790ef6b5b903779a14d995ce3d9e680bec0 (patch) | |
| tree | 8ff5c867220173ded9e7de932b9a9759855ec5f1 /drivers/net/xen-netback/interface.c | |
| parent | tile: make __write_once a synonym for __read_mostly (diff) | |
| download | kernel-6d715790ef6b5b903779a14d995ce3d9e680bec0.tar.gz kernel-6d715790ef6b5b903779a14d995ce3d9e680bec0.zip | |
tile: add null check for kzalloc in tile/kernel/setup.c
Should check the return value of kzalloc first to avoid the null pointer.
Then can dereference the non-null pointer to access the fields of struct
resource.
Signed-off-by: Wang Sheng-Hui <[email protected]>
Signed-off-by: Chris Metcalf <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
