[PATCH] mac80211_hwsim: unregister genetlink family properly

2015-08-07 Thread Su Kang Yin
During hwsim_init_netlink(), we should call genl_unregister_family() if failed on netlink_register_notifier() since the genetlink is already registered. Signed-off-by: Su Kang Yin --- drivers/net/wireless/mac80211_hwsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[PATCH] mac80211_hwsim: unregister genetlink family properly

2015-07-21 Thread Su Kang Yin
During hwsim_init_netlink(), we should call genl_unregister_family() if failed on netlink_register_notifier() since the genetlink is already registered. Signed-off-by: Su Kang Yin --- drivers/net/wireless/mac80211_hwsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[PATCH] serial: max310x: Fix out of bounds access

2015-08-11 Thread Su Kang Yin
Max310x driver supports up to 4 UART devices but array size of "struct max310x_one" is set to 1. That leads to out of bounds access on UART port registration. This patch fixed it by increase the array size to 4 which is maximum supported UART. --- drivers/tty/serial/max310x.c | 5 - 1 file ch

[PATCH v2] serial: max310x: Fix out of bounds access

2015-08-12 Thread Su Kang Yin
Max310x driver supports up to 4 UART devices but array size of "struct max310x_one" is set to 1. That leads to out of bounds access on UART port registration. This patch fixed it by increase the array size to 4 which is maximum supported UART. Signed-off-by: Su Kang Yin --- v2: add

[PATCH] crypto: talitos - fix ECB and CBC algs ivsize

2020-06-11 Thread Su Kang Yin
Patch for 4.9 upstream: commit e1de42fdfc6a ("crypto: talitos - fix ECB algs ivsize") wrongly modified CBC algs ivsize instead of ECB aggs ivsize. This restore the CBC algs original ivsize of removes ECB's ones. Signed-off-by: Su Kang Yin --- drivers/crypto/talitos.c | 4 +---

[PATCH V2] crypto: talitos - fix ECB and CBC algs ivsize

2020-06-11 Thread Su Kang Yin
commit e1de42fdfc6a ("crypto: talitos - fix ECB algs ivsize") wrongly modified CBC algs ivsize instead of ECB aggs ivsize. This restore the CBC algs original ivsize of removes ECB's ones. Fixes: e1de42fdfc6a ("crypto: talitos - fix ECB algs ivsize") Signed-off-by: Su Ka